SiteCore caching

Could you please explain what is happening here, I can see these entries in my log file, but I cannot figure out what is going on.

Thanks Hardeep

9160 13:18:33 INFO Cache created: 'master [data]' (max size: 30MB, running total: 82MB)
9160 13:18:33 INFO Cache created: 'master [items]' (max size: 20MB, running total: 102MB)
9160 13:18:33 INFO Cache created: 'master [paths]' (max size: 1MB, running total: 103MB)
9160 13:18:33 INFO Cache created: 'master [standardValues]' (max size: 1MB, running total: 104MB)
9160 13:18:33 INFO Cache created: 'web [data]' (max size: 30MB, running total: 134MB)
9160 13:18:33 INFO Cache created: 'web [items]' (max size: 20MB, running total: 154MB)
9160 13:18:33 INFO Cache created: 'web [paths]' (max size: 1MB, running total: 155MB)
9160 13:18:33 INFO Cache created: 'web [standardValues]' (max size: 1MB, running total: 156MB)
9160 13:18:33 INFO Cache created: 'filesystem [data]' (max size: 0 bytes, running total: 156MB)
9160 13:18:33 INFO Cache created: 'filesystem [items]' (max size: 0 bytes, running total: 156MB)
9160 13:18:33 INFO Cache created: 'filesystem [paths]' (max size: 0 bytes, running total: 156MB)
9160 13:18:33 INFO Cache created: 'filesystem [standardValues]' (max size: 0 bytes, running total: 156MB)
+2


source to share


4 answers


This basically tells you that Sitecore has created a cache. This means that we save a little memory to store the database data. Thus, we can deliver this data very quickly back to you.



Hope it helps.

+12


source


Try to access the cache for your website to get a better idea.



http://yourwebsite.com/sitecore/admin/cache.aspx . It gives you the size of the cache for a bunch of items.

+3


source


As it has been noted that my comment on the answer is better than the answer itself:

These lines indicate that Sitecore is creating caches, as Alex points out.

A common question is what the maximum size and total number of items mean.

In this particular case, our first line is

9160 13:18:33 INFO  Cache created: 'master[data]' (max size: 30MB, running total: 82MB)

      

At this point, a cache is created data

for the database master

. The maximum size of this cache is 30 MB, and the total memory "reserved" for all caches up to this point is 82 MB.

It makes a little more sense when you look at the first three lines.

9160 13:18:33 INFO  Cache created: 'master[data]' (max size: 30MB, running total: 82MB)
9160 13:18:33 INFO  Cache created: 'master[items]' (max size: 20MB, running total: 102MB)
9160 13:18:33 INFO  Cache created: 'master[paths]' (max size: 1MB, running total: 103MB)

      

Here we see three caches for the database master

. When added master[items]

, we add 20MB to the previous 82MB total to get 102MB. Add 1MB for master[paths]

and you get 103 MB.

Section 3.4 Sitecore 6.6 Caching Documentation (PDF) (which is roughly the version that was used when this question was asked, and still mostly matters through at least 7.5.x) can help with setting these values โ€‹โ€‹and understanding that stores every cache.

+1


source


These cache entries are created from entries in the web.config file. There are four separate areas that define these options and allow you to specify options based on different areas. For example, by database, by site, or even around the world. These four sections:

Configuration / Sitecore / Databases / Databases Configuration / Sitecore / Sites / Site Configuration / Sitecore / cacheSizes / Sites / Site Configuration / Sitecore / Settings

The values โ€‹โ€‹let you scale or shrink the amount of memory you are using to suit the environment you are working in. You can view the usage by looking at your local url (as mentioned in an earlier answer) http: ///sitecore/admin/cache.aspx. You will need administrator credentials to log in. If you find it too easy, I also got a modified version that you can use instead of this page here: marketplace.sitecore.net/en/Modules/Caching_Manager.aspx .

Cache items are stored in groups by their use. There are at least eight that you can tweak that I know of, but that's not all that gets created. Configurable:

data - items fields - recently requested items paths - recently requested element paths standardValues โ€‹โ€‹- html standard value elements - sublayout html registry - sitecore settings such as custom viewState settings - xsl system templates - xsl control html

The parameters in the log you see "master [data]" (max size: 30 MB, total: 82 MB) says that a cache named โ€œdataโ€ has been created for the โ€œmasterโ€ database and it has a maximum capacity of 30 MB. I'm not sure what works, so I won't speculate.

0


source







All Articles