What's the difference between getCacheKeyInfo and _getCacheId?
Why _getCacheId is not enough to cache a block?

2 Answers 2


getCacheKeyInfo is used to determine the cache key if one is not set directly for blocks.
It is used in Mage_Core_Block_Abstract::getCacheKey() that is used _loadCache method on the same block _getCacheId is not used at all for block caching and it is deprecated starting CE
Honestly I have no idea what was the use if it before 1.4.


After, magento deprecated _getCacheId() may be in order to improve Mage_Core_Model_Cache.

You see more details about deprecated from 1.5.0 and check this link at http://docs.databyte.at/magento/community/1.5/deprecated.html

Now getCacheKeyInfo() use for cache

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.