novactive / ezsmartcacheclear-bundle
eZ Platform Bundle providing cache clearing features
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 6
Forks: 2
Open Issues: 0
Type:symfony-bundle
Requires
- ezsystems/ezplatform-http-cache: ^0.5 || ^0.6
- ezsystems/ezpublish-kernel: ^7.0
- symfony/framework-bundle: ^3.0
Requires (Dev)
- phpmd/phpmd: ^2.0
- phpunit/phpunit: ^5.0|^6.0|^7.0
- sebastian/phpcpd: ^3.0|^4.0
- squizlabs/php_codesniffer: ^3.0
This package is auto-updated.
Last update: 2024-11-13 10:34:39 UTC
README
About
This eZ Platform bundle intends to provide an eZ publish like smart cache clearing mechanisme.
The following clearing rules are available :
- parents
- siblings
- children
- subtree
Installation
The recommended way to install this bundle is through Composer. Just run :
composer require novactive/ezsmartcacheclear-bundle
Register the bundle in the kernel of your application :
// app/AppKernel.php public function registerBundles() { $bundles = [ // ... new Novactive\eZSmartCacheClearBundle\NovaEzSmartCacheClearBundle(), ]; ... return $bundles; }
Configuration
Once the bundle registered, you should configure the rules you want to apply for your content types, by defining the following config :
nova_ez_smart_cache_clear: config: my_siteaccess: publish: - content_type: my_content_type rules: parents: { enabled: true, nbLevels: 4 } children: { enabled: true } siblings: { enabled: true } subtree: { enabled: true }
License
This bundle is released under the MIT license. See the complete license in the bundle:
LICENSE