Jump to content

Cache problem prestashop 1.7


Marian Mada

Recommended Posts

Hello,

So I don't know what site to write on.
I'll explain the problem first.
I have an online store and integrated in it I have a feed that updates my prices every day. After the price update, the change is not seen in chrome, only on incognito. If I enter chrome normally and delete the cache, it shows the good prices after the first refresh, but if I give it another refresh, it shows me the old prices.
Please, I left posts all the internet sites and forums for this. What plugin do I need or do I need a script on cron jobs to delete my cache in my site.

My theme is AngarTheme, buyed from prestashop.com

If there is here someone to know a script that can be added in cron jobs (in cpanel) and can be run automatically to delete cache from site..

Site: http://www.macoshop.ro

Maybe I didn't post where I should and I apologize a thousand times for that.

I thank you from the bottom of my heart.

Edited by Marian Mada (see edit history)
Link to comment
Share on other sites

in cache mode is set compile when changes

 

I have add and php script like this

 

<?php

require(dirname(__FILE__).'/config/config.inc.php');

//change 'abc123' to any value you wish to use
$token = Tools::getValue('token');
if (!$token || $token != 'pasword')
     die();

Tools::clearSmartyCache();
Tools::clearXMLCache();
Media::clearCache();
PrestaShopAutoload::getInstance()->generateIndex();
echo "Cache cleared";

?>

 

but in product when i click on product on quick view, i see another price than the principal price

Edited by Marian Mada (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...