This topic has 3 voices, contains 3 replies, and was last updated by Smurv 360 days ago.
Tagged: cache cron
ThemeBurn Support › Forums › OpenCart Themes › BurnEngine › is 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
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?
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
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.
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.
Register | Log in
Support forums are restricted to verified buyers only. To apply for access click the "Register" link above and follow the on screen instructions.
Product support is offered by forum only. Requests made by email or any other way will be redirected to the forum.