Zend Framework

Zend_Cache_Manager has no way to get all the caches

Details

  • Type: Improvement Improvement
  • Status: Resolved Resolved
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.10.5
  • Fix Version/s: 1.10.8
  • Component/s: Zend_Cache
  • Labels:
    None

Description

Hi,

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...

Issue Links

Activity

Hide
Cristian Bichis added a comment -

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

Show
Cristian Bichis added a comment - Btw, i'we mtioned cleaning all the caches as a trivial task. I think would worth adding such method as well.
Hide
Marc Bennewitz (private) added a comment -

-> 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)

Show
Marc Bennewitz (private) added a comment - -> 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)
Hide
Marc Bennewitz (private) added a comment -

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

Show
Marc Bennewitz (private) added a comment - patch commit in r22727 (trunk) & r22728 (1.10 branch)

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: