PageCacheManager Plugin
Customize EVO cache deletion and manage cache files efficiently across documents
Customize EVO cache deletion and manage cache files efficiently across documents
This plugin was created to optimize cache management in Evo for sites with a high number of pages.
As many know, every time a document is created or modified in Evo, all cached files of other documents are cleared.
This behavior is necessary because the system cannot determine which documents depend on the newly created or modified document. However, it's not ideal when simply adding or updating a document in a blog or catalog with hundreds or thousands of cached pages, as it negatively impacts site performance and user experience.
PageCacheManager plugin's operation is straightforward
- It modifies the behavior of the "Clear Cache" checkbox, setting it to unchecked when the document edit form loads and after each save, while still allowing manual selection if a complete cache clean is desired.
- When saving a document, it clears only the cache of the current document and cached files of a selection of other documents. These documents are specified by document ID or template ID on the plugin's configuration page, under the parameters "Always clear cache of these Documents by id" and "Always clear cache of these Documents by Template id".
In these parameters, you can specify documents such as sitemaps, RSS feeds, categories, catalogs, and any other pages containing lists of documents that require updates, potentially including the homepage if it displays the latest posts or products.
You can enable debug mode to view reports of deleted cache files, and it's also possible to completely exclude certain documents from the plugin's actions by specifying their respective document ID or template ID.
Limitations
Evolution clears all cache even when saving new Elements: templates, plugins, chunk snippets etc, but it is obviously indispensable.
Warning!
This version is a Release Canditate and currently compatible only with Evo 1.4x. It will be updated in the future to support Evo 3.xPageCacheManager plugin configuration
Always clear cache of these Documents by id (comma separated)
A list of document ids whose cache will always be deleted/updated, along with the current document's cache
Always clear cache of these Documents by Template id (comma separated)
A list of template ids of documents whose cache will always be deleted/updated, along with the cache of the current document
Exclude Documents by id (comma separated)
A list of document ids to exclude from PageCacheManager plugin
Exclude Templates by id (comma separated)
A list of template ids to exclude from PageCacheManager plugin
Enable debug
Enable Log of deleted cache files