Search code examples
phpzend-frameworkcachingapc

How to use I use Zend_Cache_Backend_TwoLevels with tagging?


I'm thinking of using two level cache backend, in a Zend Framework application.

  1. Fast: APC
  2. Slow: File

But I need it to use cache tagging, to make an easy cache clearing. So is it possible? to use those combinations?

PS. I'm asking this question because I've read:

Be careful : with this backend, "tags" are not supported for the moment as the "doNotTestCacheValidity=true" argument.

In the official Zend Framework document: Zend Cache APC Backend, so I was wondering how to get use of tags, since it's the most interesting part in caching IMO.


Solution

  • I don't think this is possible. You marked Mikushi's answer correct, however from this page:

    http://framework.zend.com/manual/en/zend.cache.backends.html#zend.cache.backends.memcached

    Be careful : with this backend, "tags" are not supported for the moment as the "doNotTestCacheValidity=true" argument.