ZF-9849: Log error when using Zend_Translate with Zend_Cache_Backend_Memcached

Issue Type: Improvement Created: 2010-05-17T08:25:59.000+0000 Last Updated: 2010-05-17T15:23:40.000+0000 Status: Resolved Fix version(s): - 1.11.0 (02/Nov/10)

Reporter: Michael Kliewe (mkliewe) Assignee: Thomas Weidner (thomas) Tags: - Zend_Translate

Related issues: Attachments:


I'm using Zend_Translate and Zend_Cache with memcached backend. If I activate logging like this:

<pre class="highlight">$frontendOptions = array('lifetime' => $this->_applicationIni->cache->global->lifetime ,
     'automatic_serialization' => true,
     'automatic_cleaning_factor' => 0,    
     'write_control' => true,
     'logging'=> true,
     'logger' => $logger);

Then I get a lot of messages like {quote}Zend_Cache_Backend_Memcached::save() : tags are unsupported by the Memcached backend{quote}

This is because the memcached adapter does not support tags, and Zend_Translate uses tags. Is it possible to make these tags optional so I can disable the use of tags in Zend_Translate?


Posted by Thomas Weidner (thomas) on 2010-05-17T13:08:08.000+0000

Closing as won't fix.

According to the manual Zend_Cache must be used with tags to allow deletion of relevant cache entries (not the complete cache). The manual does not note that this works only with special frontends/backends.

Actually there is no way to change Zend_Translate other than integrating a BC by disallowing cache handling.

Posted by Thomas Weidner (thomas) on 2010-05-17T14:31:18.000+0000

Changed with r22190

Posted by Michael Kliewe (mkliewe) on 2010-05-17T15:23:40.000+0000

Thank you Thomas, that's a nice solution!

Have you found an issue?

See the Overview section for more details.


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

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