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.

Alen
  • 279
  • 1
  • 3
  • 15

1 Answers1

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>
Akhilesh Patel
  • 4,522
  • 2
  • 18
  • 30