Issue Type: Improvement Created: 2011-07-25T13:40:58.000+0000 Last Updated: 2011-08-26T18:48:08.000+0000 Status: Resolved Fix version(s): - Next Major Release ()
Reporter: Jan Gantzert (tronga) Assignee: Thomas Weidner (thomas) Tags: - Zend_Cache
Related issues: Attachments:
If I want to cache the Translations and my translations are larger than 1 MB Memcache Caching fails. This is normal because of the fact that Memcache only supports til 1 MB.
Zend_Translate should be realy checking if the Translation is in the cache and not only if it is active. (Zend_Cache test() function with the id).
<148 set Zend_Translate_fbb627815194a7eb92a9b65e6e71a1bb_Db 1 7200 16756097
148 SERVER_ERROR object too large for cache
$translate = Zend_Registry::get('Zend_Translate'); Zend_Debug::dump($translate); Zend_Debug::dump($translate->hasCache()); die();
My Output is "1" (does Cache exists), which is correct, but it implicates a status, that may not really exist.
Posted by Thomas Weidner (thomas) on 2011-07-29T08:13:31.000+0000
When you add a cache then "hasCache" is always true regardless of stored or not stored content. The only thing which can be done and seems to be correct in such a case is to throw an exception. Because when a cache can not be written but you said store in cache its a severe problem.
Posted by Thomas Weidner (thomas) on 2011-08-26T18:48:08.000+0000
Added in ZF2 with GH-295
Have you found an issue?
See the Overview section for more details.