Download the PHP package parabol/parabol-cache-bundle without Composer
On this page you can find all versions of the php package parabol/parabol-cache-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download parabol/parabol-cache-bundle
More information about parabol/parabol-cache-bundle
Files in parabol/parabol-cache-bundle
Package parabol-cache-bundle
Short Description Automatic web cache system for symfony3 projects.
License MIT
Homepage https://github.com/parabolalab/ParabolCacheBundle
Informations about the package parabol-cache-bundle
ParabolCacheBundle
The ParabolCacheBundle provides view caching functionality for Symfony/Doctrine (for now only ORM) projects based on request/response events. All responses for GET-requests (expect actions defined as excluded in bundle config) are stored in separated and minified files in symfony cache directory. The bundle also creates mapping for Doctrine queries in order to automatically clear only those cached files that are related to changing entity.
Pros:
- Very easy installation
- Start working just after 3 simple installation steps
- Automatically creates cache for all not excluded actions
- Automatically creates mapping between actions and entities
- Automatically clear cached files related to Doctrine Entity in postPersist/postUpdate events.
- Minify HTML output - useful for getting Google PageSpeed Tools better results ;)
How it works
...
Installation
1) Install via Composer:
2) Enable bundle in app/AppKernel.php by adding in registerBundles():
3) Change default Doctrine EntityManager by adding to app/config/config.yml:
Congratulation your HTML Cache System should be working now.
Configuration
Default bundle configuration
Enable html-minifier
In symfony config.yml file put minifier_command parameter with path to html-minifier proceeded by path to node.js:
or for better project movability in parameters.yml
You can modify minified output by change minifier_command_params but keep in mind that the value must include the keywords: :target and :source
Other minifier
If you want to use an other minfier just put right path in minifier_command and proper command parameters in minifier_command_params.
Excluding actions from caching
To exclude some actions from caching put their names (Bundle:Controller:action) into exclude array