Jump to content

Cron Job to empty cache


Recommended Posts

Hi,

 

I have a website where prices are updated for all products twice daily. What I'm looking to do is clear the cache of the front page, as it displays prices for some featured items and if the cache is not cleared, when you click one of the products, the price differs to that on the product page.

 

I assume it can be done, I just haven't a clue how and would really appreciate some help!

 

Many thanks

Ryan

Link to comment
Share on other sites

Thanks for the information - I'm a complete newbie to cron jobs and have only ever set them up when the command has been provided. I don't actually understand what I need to do (sorry!).

 

Any chance you could provide me with some details, or point me to somewhere I could learn?

Many thanks in advance

Ryan

Link to comment
Share on other sites

Oh, sorry!

 

In this case, before calling that method in your php file, be sure you include this

 

include(dirname(__FILE__).'config/config.inc.php');
include(dirname(__FILE__).'init.php');
 
 
BUT! depending on where you place your script, refer to the inclusions correctly :) Those are the settings to apply if your file sits in prestashop's root folder
Link to comment
Share on other sites

  • 2 months later...
  • 4 weeks later...
  • 3 months later...
  • 4 months later...

Hi

 

This is an issue that is important to many of us.

I understand that you have to make a php file with the above content. Then what?

 

1.Where do we copy it on our site

2. How to make an absolute secure url reference to feed prestashops cron module?

 

Thank you

George

Link to comment
Share on other sites

×
×
  • Create New...