ZF-10220: Zend_Cache_Manager has no way to get all the caches

Issue Type: Improvement Created: 2010-07-24T01:43:31.000+0000 Last Updated: 2010-07-30T05:43:13.000+0000 Status: Resolved Fix version(s): - 1.10.8 (25/Aug/10)

Reporter: Cristian Bichis (avantis) Assignee: Marc Bennewitz (private) (mabe) Tags: - Zend_Cache

Related issues: - ZF-10240

Attachments: - ZF-10220.patch



Sometime is usefull to get the list of all the caches handled by cache manager.

However, even if the cache manager has a protected

protected $_caches = array();

it doesn't offer any way to return back all the caches (or caches names).

This could be useful in certain situations, i would only mention the need to cleanup all the caches...


Posted by Cristian Bichis (avantis) on 2010-07-25T06:44:20.000+0000

Btw, i'we mtioned cleaning all the caches as a trivial task. I think would worth adding such method as well.

Posted by Marc Bennewitz (private) (mabe) on 2010-07-25T14:46:16.000+0000

-> added method Zend_Cache_Manager::getCaches() returning an array contains all available caches with it's names

waiting for padaric to reviewing changes related to adding this method (removing option template "skeleton" & using default options of file backend by default)

Posted by Marc Bennewitz (private) (mabe) on 2010-07-30T05:40:38.000+0000

patch commit in r22727 (trunk) & r22728 (1.10 branch)

Have you found an issue?

See the Overview section for more details.


© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.