Choosing the right output caching configuration for your Sitefinity CMS is an important architectural decision and can have an impact not only on your site’s performance and scalability, but also affect your costs.
By default, Sitefinity CMS uses the web server memory to store output cache items. This option provides the fastest possible speed for getting content from cache and delivering it to site visitors, thus delivering the best page response times. In regards to maintenance InMemory output cache storage requires no extra configuration or maintenance, as server memory is used, thus being an easier solution. Although it affects the server memory consumption footprint, InMemory output cache does not require maintaining additional cost for external cache storage.
The following table compares the advantagesof using in-memory or distributed cache:
Characteristic
In-memory cache
Distributed cache
Winner
Startup time (first node)
Web server node processes the content and stores an output cache item in its memory.
Web server node processes the content and stores an output cache item in the distributed cache.
Both
Startup time (subsequent nodes)
New web server nodes compile and processes the content and store an output cache item in their memory. Startup time is the same as first node.
New nodes get the item from the distributed cache.
Startup time is up to 5 times faster.
CPU utilization
Each web server node uses CPU resources to processes the content and stores an output cache item.
Only the first web server node uses CPU resources to processes the content.
Average response time (of a warmed-up site)
Fetching already cached content from the server memory is faster.
Fetching already cached content from the distributed cache storage depends on network latency.
Memory consumption
Each web server node consumes memory to stores an output cache item.
No memory is used to store output cache items on the web server nodes. Distributed cache storage is used to store items
Availability
Output cache items are persisted in the server memory and are not available after restart.
Output cache items remain on the distributed cache storage and remain available after web server node restarts.
Maintenance
No extra maintenance. Server memory is used.
Distributed cache storage is an extra asset that needs to be maintained.
Increase your Sitefinity skills by signing up for our free trainings. Get Sitefinity-certified at Progress Education Community to boost your credentials.
This free lesson teaches administrators, marketers, and other business professionals how to use the Integration hub service to create automated workflows between Sitefinity and other business systems.
This free lesson teaches administrators the basics about protecting yor Sitefinity instance and its sites from external threats. Configure HTTPS, SSL, allow lists for trusted sites, and cookie security, among others.
The free on-demand video course teaches developers how to use Sitefinity .NET Core and leverage its decoupled architecture and new way of coding against the platform.
To submit feedback, please update your cookie settings and allow the usage of Functional cookies.
Your feedback about this content is important