GordonLesti / Lesti_Fpc

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

How to refresh lesti fpc cache from command line? #181

Closed JohanDH closed 8 years ago

JohanDH commented 8 years ago

Hi,

I want to use a cachewarmer script I found on stackoverflow. http://stackoverflow.com/questions/31181640/magento-fpc-cache-warm-with-user-groups-wget-lesti-fpc How can I first refresh the lestifpc cache from the command line?

!/bin/bash

wget --quiet http://YOUR-URL.co.uk/sitemap.xml --output-document - | egrep -o "http://YOUR-URL.co.uk/[^<]+" | wget -q --delete-after -i -

pschoenmakers commented 8 years ago

You can do a: redis-cli -n #num# flushdb

replace #num# with your actual database number setup in /app/etc/fpc.xml

GordonLesti commented 8 years ago

This is one solution https://github.com/GordonLesti/Lesti_Fpc/issues/198#issuecomment-199681938

upandfine commented 7 years ago

Here are two helpful links:

http://stackoverflow.com/questions/30842912/how-to-refresh-full-page-cache-of-a-particular-product-in-magento

http://stackoverflow.com/questions/30863780/magento-specific-product-clean-cache-using-lesti-fpc-when-i-change-stock-in-th