IMPORTANT: This version of Sitefinity CMS is out of support and the respective product documentation is no longer maintained and can be outdated. Use the version selector to view a supported product version.
L2 cache in Sitefinity CMS is used to cache database query results for subsequent requests. Using L2 cache can significantly increase the overall performance of your application. For example, when you open the list of news items in the backend for the first time, data is requested from the database to populate the list. Sitefinity CMS underlying ORM caches the data and subsequent request return the cached response.
The L2 cache in Sitefinity CMS can be enabled or disabled via changing the Enable data caching property available under Administration -> Settings -> Advanced -> Data. The supported values are:
NOTE: By default, the value of this property is left empty. This means that Sitefinity CMS will automatically determine the best setting, depending on the hosting scenario.
You can configure the L2 cache settings per persistent type - both in Network Load Balanced (NLB) environment as well as single instance environment. By default, caching is enabled for all persistent types. By configuring the L2 Cache Strategies setting, you can specify which persistent types not to use the L2 cache.
RECOMMENDATION: It is recommended to have the L2 cache turned on for all persistent types and disable it only for testing purposes.
When you change the L2 cache strategy for a specific content type, the strategy does not automatically apply to any related types. For example, if you disable the L2 cache for the Blog content type, you actually do not disable the L2 cache for the Blogpost content type. To disable L2 cache for the Blogpost type, you need to explicitly do so.
NOTE: Turning off L2 cache for the DynamicContent type turns it off for every artificial type created with the DynamicModule builder. Turning off L2 cache for taxonomies turns it off for all Ecommerce departments because departments classify as a taxonomy.
Back To Top
To submit feedback, please update your cookie settings and allow the usage of Functional cookies.
Your feedback about this content is important