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
|
|
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
|
|
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 2261 days ago by bigmoon.
-
This reply was modified 2261 days ago by bigmoon.
|
|
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
|
|