0

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.

4

1 Answer 1

1

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>

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.