Skip to content

Commit

Permalink
Merge pull request #106 from lukasan/patch-2
Browse files Browse the repository at this point in the history
docs caching change Piranha.Caching to Piranha.Cache
  • Loading branch information
tidyui authored Apr 12, 2024
2 parents d9416f7 + 05ca7bc commit 79eb7b2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/04. Architecture/03. Caching/Index.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ By default Piranha caches **everything** when a Cache Service is registered, but
##### CacheLevel.None

~~~ csharp
Piranha.App.CacheLevel = Piranha.Caching.CacheLevel.None;
Piranha.App.CacheLevel = Piranha.Cache.CacheLevel.None;
~~~

Nothing is cached even if a cache service is registered.

##### CacheLevel.Minimal

~~~ csharp
Piranha.App.CacheLevel = Piranha.Caching.CacheLevel.Minimal;
Piranha.App.CacheLevel = Piranha.Cache.CacheLevel.Minimal;
~~~

The following data is kept in cache:
Expand All @@ -49,7 +49,7 @@ The following data is kept in cache:
##### CacheLevel.Basic

~~~ csharp
Piranha.App.CacheLevel = Piranha.Caching.CacheLevel.Basic;
Piranha.App.CacheLevel = Piranha.Cache.CacheLevel.Basic;
~~~

The following data is kept in cache:
Expand All @@ -62,7 +62,7 @@ The following data is kept in cache:
##### CacheLevel.Full

~~~ csharp
Piranha.App.CacheLevel = Piranha.Caching.CacheLevel.Full;
Piranha.App.CacheLevel = Piranha.Cache.CacheLevel.Full;
~~~

Everything is kept in cache, including all Blocks and Fields for Content Types. This is the default cache level.
Everything is kept in cache, including all Blocks and Fields for Content Types. This is the default cache level.

0 comments on commit 79eb7b2

Please sign in to comment.