Magento – Why flush cache is not working

cachefull-page-cachehostingmagento-2.1magento2

My issue is I have two duplicate websites one for dev purpose and one is my live site.

When I change for example the theme color and flush the cache, working perfectly, color is changing.

But when I do the same thing on my Live site nothing changes.
I tried all the commands:

php70 bin/magento setup:upgrade;
rm -rf generated/*;
rm -rf pub/static/*;
rm -rf var/cache/*;
rm -rf var/page_cache/*;
rm -rf var/composer_home/*;
rm -rf var/view_preprocessed/*;
rm -rf var/cron/*;

php70 bin/magento setup:di:compile;

php70 bin/magento setup:static-content:deploy;

redis-cli flushall; 
php70 /opt/magemojo/bin/n98-magerun2.phar cache:flush; 
php70 bin/magento indexer:reindex;
php70  bin/magento cache:clean;
php70 bin/magento cache:flush;

Any idea?

Best Answer

If you are using Varnish to cache on your live site I have found that restarting varnish sometime does the trick for the stubborn cache

service varnish restart
Related Topic