GordonLesti / Lesti_Fpc

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

Manually Delete Lesti Cache #212

Closed ghost closed 8 years ago

ghost commented 8 years ago

Is there a way to manually remove all Lesti FPC cache files? I am having an issue where our home page will not update to the new design while Lesti FPC is enabled. I have tried everything to flush and refresh our caches but no change.

GordonLesti commented 8 years ago

Hello @apdiving if you use Filecache as cache backend, you can remove the cached files with rm -r var/cache/fpc*, presupposed that your Magento cache directory is var/cache.

ghost commented 8 years ago

Hi, yes we do. I have removed all fpc* folders from this area but still I see an old home page when FPC is switched on. It's very odd as this problem doesn't affect any other part of our website. Just the landing.

Try http://www.apdiving.com/shop/

and try this: http://www.apdiving.com/shop/?___store=en_gb

Both should be the same as en_gb store view is default. The second link is correct. The first is old and literally doesn't exist anywhere anymore.

GordonLesti commented 8 years ago

I have made request to http://www.apdiving.com/shop/ and this page is in cache since 2147787 seconds or more than 24 days. Did you have a file app/etc/fpc.xml?

ghost commented 8 years ago

How strange, why would it cache for that long?

Yes it contains:

<config>
    <global>
        <fpc>
            <lifetime>86400</lifetime>
            <backend>memcached</backend>
            <memcached>
                <!-- ... -->
            </memcached>
        </fpc>
    </global>
</config>
GordonLesti commented 8 years ago

Now we know that you are using memcached as cache backend :)

ghost commented 8 years ago

Is this where my problem lies?

Edit: Just flushed memcache and it's fine now. Why would it be holding onto this particular page for so long?

GordonLesti commented 8 years ago

I guess yes. I would like to help you, but Lesti_Fpc_Model_Fpc is just extending from Mage_Core_Model_Cache and uses just the Api of this class to flush, clean or save into the cache backend. I guess you have to start debugging why it isn't possible for Fpc to flush the memcached.

ghost commented 8 years ago

I'll keep an eye on that page... No other page was held for that amount of time. And considering it was definitely update since it's lifetime of 24 days, it's odd that the file wasn't flushed.

Thanks for your help with this. Great extension :)