i have a custom topmenu.phtml that adds a lot of load time to run on every page how can i make it get cached and only regenerate the menu html once a day? thanks I tried searching but am getting confused I have CE 126.96.36.199 and my caches (including full page) are enabled here is my Aoe Profiler run details
If this is the default catalog.topnav block and an instance of Mage_Page_Block_Html_Topmenu, it's already cached for unlimited time (or until any category changes, thanks to cache tags). This is achieved with setCacheLifetime(false) in the constructor. If not, you can use layout XML to call setCacheLifetime(86400), which sets the lifetime to 1 day.