Issues

ZF-10438: Zend_Locale, Zend_Currency cache clearing -> Zend_Locale_Data should use tagging when backend is capable of it

Issue Type: Improvement Created: 2010-09-09T03:45:45.000+0000 Last Updated: 2011-07-28T19:42:39.000+0000 Status: Resolved Fix version(s): - Next Major Release ()

Reporter: Zoran Lazic (zoki) Assignee: Thomas Weidner (thomas) Tags: - Zend_Currency

  • Zend_Locale

Related issues: Attachments:

Description

I pass my cache object to Zend_Locale::setCache or Zend_Currency and when I call Zend_*::clearCache() it clears complete cache - no matter who worte it. problem is that one server is used by few projects and they all lose cache.

Since these components use Zend_Locale_data::clearCache() (and for future components that will use) there should be used getCapabilities() to determine whether the cache returns tags. It should use tags rather than clearing it all - if cache is capable of tags - otherwise clear all.

Similar problem was in Zend_Translate : http://framework.zend.com/issues/browse/ZF-10166 but translate deals with cache inside it's own class.

Comments

Posted by Thomas Weidner (thomas) on 2011-07-28T19:42:39.000+0000

Added with GH-107

Have you found an issue?

See the Overview section for more details.

Copyright

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

Contacts