is there a way to clear the cache from cron job?

Tagged: 

ThemeBurn SupportForumsOpenCart ThemesBurnEngineis there a way to clear the cache from cron job?

This topic has been marked as not resolved.

I’m looking for a way to schedule a cache clear from a cron job.

need to “clear all” for stores that have caching setup

February 16, 2018 at 12:08 am #63585

Hi,

Unfortunately there is no way to do this with a CRON job. Why would you want your cache to be cleared on a timely interval?

BR,
ThemeBurn team

February 17, 2018 at 12:54 pm #63588

right now images disappear if I don’t clear it on a timely basis, also do not want to clear it during the day when people are using the site. since it slows down page loading after cache is cleared.

If I could clear it from cron job at 2am
https://domain.com/admin/index.php?route=module/BurnEngine&controller=default&action=clearCache&store_id=0″

Then I could reload cache (cache warming) and it would run great and fast all day long. also any changes made to site would be updated everyday and would not have to clear cache manually to make that happen.

  • This reply was modified 124 days ago by  bigmoon.
  • This reply was modified 124 days ago by  bigmoon.
February 17, 2018 at 9:44 pm #63604

Hi,

you can use ‘oc_cli’ for this. I’m using it for generating large xml feeds at night. See here, its working on OpenCart 2.3.

https://github.com/iSenseLabs/oc_cli

Best regards,

Jan

 Smurv
March 26, 2018 at 6:49 pm #63788
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.