Magento Footer Behavior
Question
I just notice that when ever I add this codes on the Magento Footer:
$current_id = Mage::registry('current_category')->getId();
echo $current_id;
The Category ID is not changing whenever I change the Category. It only changes when I clear the cache.
It is possible that the Magento Footer is a Static One? Cause I won't update unless you clear any cache.
Solution
You can set the cache lifetime value from XML
<reference name="footer">
<action method="setCacheLifetime"><s>null</s></action>
</reference>
or
<reference name="footer">
<action method="setCacheLifetime" />
</reference>
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange