Download the PHP package rickysu/tagcache-bundle without Composer
On this page you can find all versions of the php package rickysu/tagcache-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download rickysu/tagcache-bundle
More information about rickysu/tagcache-bundle
Files in rickysu/tagcache-bundle
Package tagcache-bundle
Short Description This bundle provides cache with tags and controller cache
License MIT
Homepage https://github.com/RickySu/tagcache-bundle
Informations about the package tagcache-bundle
TagcacheBundle
Introduction
This bundle provides cache with tags.
Features
- Stores a cache with multiple tags. And deletes cache by using tag.
- Provides controller cache.
Requirements
- Annotations for Controllers.
Installation
editing the composer.json file in the root project.
Editing the composer.json under require: {} section add
Update Bundle :
Instantiate Bundle :
Configuration
Configure cache adapter
driver
The cache driver. Currently support "Memcache,Memcached,File,Sqlite,Apc,Nullcache". Nullcache is for testing only.
hashkey
some driver like Memcached,only support 250 characters key length. Enable this option will use md5 hashed key.
enable_largeobject
Memcache cannot store object over 1MB.Enable these option will fix this issue,but cause lower performance.default false.
servers
Memcache server configs. format => "Host:Port:Weight"
How to Use
Using Tagcache for storing cache data.
Controller Cache
Controller Setting
View Setting(Twig) (for Symfony 2.1)
View Setting(Twig) (for Symfony 2.2)
Your Familiar Partial Cache Comes Back
Clear Cache
Note
If you both define cache params in view and controller. "tagcache" variable in view will overwrite controller annotations. But remember,controller annotation config "cache" must set to false,If you want to turn off controller cache.
TODO
LICENSE
MIT
All versions of tagcache-bundle with dependencies
rickysu/tagcache Version 1.0.*
sensio/framework-extra-bundle Version >=2.1.0
symfony/symfony Version >=2.6.0