Download the PHP package luklewluk/supercache without Composer
On this page you can find all versions of the php package luklewluk/supercache. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download luklewluk/supercache
More information about luklewluk/supercache
Files in luklewluk/supercache
Package supercache
Short Description Supercache Plugin for Pimcore
License MIT
Homepage https://github.com/luklewluk/SupercachePlugin
Informations about the package supercache
SupercachePlugin
Static pages & files caching system for Pimcore.
Installation
Also you will need to make changes in your rewrite configuration:
Apache:
Edit your Pimcore .htaccess file by adding the following lines:
It should be located after
# forbid the direct access to pimcore-internal data (eg. config-files, ...)
and before
# basic zend-framework setup see: http://framework.zend.com/manual/en/zend.controller.html
Nginx:
Virtual host configuration:
Replace:
To:
Some tests
Simple Pimcore blog and request time (TTFB) per page:
-
Supercache - ~0.37ms
-
Output Cache - ~31.5ms
- Pimcore without extra cache - ~79.5ms
Cache cleaning
Currently any change clean the cache. It turned out to be the best solution especially if someone wants to use Supercache in really complex website with many object-document dependencies. If you want to clean cache manually you can do it by one of method below:
- Clean "Output Cache" (since Pimcore 4.0)
- Save any document or object in the Administration Panel.
- Delete everything inside ./plugins/Supercache/webcache except .htaccess
Also Supercache is cleaned on maintenance mode activation (since Pimcore 4.0).
Issues
JSON response
Note: It can be useful if you want to cache JSON response as well.
Due to Pimcore/Zend good practices you suppose to encode your output to JSON by the helper with following command:
Unfortunately your response won't be cached because shutdown event can't be called. The easiest solution is replace it to: