I enable cache for my custom block by adding cache_lifetime
in __construct
and adding getCacheKeyInfo()
function.
cache_lifetime
and cach key were added successfully, I verified by going to _loadCache
function in Mage_Core_Block_Abstract
and dump $this->getCacheLifetime()
(shows 86400
), dump $cacheKey
(shows 4bdf58570c6cc1c082c0a2309d0acbee3f318d90
)
But when I dump $cacheData = $this->_getApp()->loadCache($cacheKey);
, it always return false
.
Why does it return false
? I haven't ever modified any core Mage files.
By the way, I'm using apc
for backend cache, and memcache
for session cache. CE 1.8.1.
And of course, I've enabled cache in admin panel already.
UPDATE:
Dump $this->getCacheKey();
in _loadCache()
: cb2336b7ccd507da70b5167dcb7e87856284647d
Dumo $this->getCacheKey();
in _saveCache()
: 00db354e5f03e1bf0b06da33c491eb2e313d29cc
OMG. Where make it change?