GordonLesti / Lesti_Fpc

Simple Magento Fullpagecache
https://gordonlesti.com/lesti-fpc-documentationversion-1-4-5/
Other
358 stars 158 forks source link

Megamenus disappears #249

Closed informundo closed 8 years ago

informundo commented 8 years ago

With Lesti fpc cache 1.4.5 enabled, every 2 days or so, does not show the megamenupro of emthemes. After refresh manually Lesti fpc and show it again. I have tried every configuracions, but currently do not have the block where will the MegaMenu in any configuration, neither lazy nor dynamic. I have a php file to refresch cache every days via cron, but lesti fpc don´t refresh. I use this to refresh cache:

// 2 CLEAN CACHE
Mage::app()->cleanCache();
try {
    $allTypes = Mage::app()->useCache();
    foreach($allTypes as $type => $blah) {
      Mage::app()->getCacheInstance()->cleanType($type);
    }
} catch (Exception $e) {
    echo $e->getMessage();
}

Thanks. Marcos https://www.navatiendas.es

GordonLesti commented 8 years ago

Hello @informundo I'm sorry, but your menu is a paid extension with closed source code. In general I would not recommend to make a menu dynamic or lazy. The lazy and dynamic blocks are mostly just for customer specifically content. Your examples from above aren't working, cause FPC is separated cache instance. That makes it possible to have different cache backends with different configs. Redis for FPC, memcached for Magento for example. You can clean FPC with:

Mage::getSingleton('fpc/fpc')->clean();

I hope this will help you.