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 184.108.40.206 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.