Automated Cache clearing

Permalink
What is the easiest method of clearing the cache, besides manually pressing the button in the Dashboard? Is there a web address, similar to automation of the Sitemap and Index function, that could be assigned?

I have not manually configured any cron jobs, but would it be possible to set up something using this methodology?

rbucky
 
ScottC replied on at Permalink Reply
ScottC
would be a nice place to start, or a very simple job. I think a nice one to clear the cache on would be on_page events excluding on_page_view because your cache would effectively be rendered useless. I would then pair it down to on_page_add or on_page_move depending on how things are cached with page-list blocks, autonav, things like that.
nerdess replied on at Permalink Reply
nerdess
Just simply use

Cache::flush();
nbruley replied on at Permalink Reply
Did you find an easy way to have the cache files cleared out every so often automatically? I have over 1700 cache files built up in a matter of a few days, and they are a problem on my server... I can't take the time to manually clear them every few days... any help appreciated. I'm running 5.6.0.2, there may be better caching function in later versions but I'm stuck on this one for the time being due to a coding issue/incompatibility.
JohntheFish replied on at Permalink Reply
JohntheFish
I have a free job in the marketplace 'Cache Vac'. It provides a variety of methods for clearing out the cache.

http://www.concrete5.org/marketplace/addons/cache-vac/...
nbruley replied on at Permalink Reply
Thanks! Where do I go for information on how to run it automatically every so often?
JohntheFish replied on at Permalink Reply
JohntheFish
You can do any of

a) install nontab scheduler (free addon) to run all jobs together regularly from within the site.

b) install flexjob scheduler (one of my paid addons) to run each job on a specific schedule, again from within the site.

c) use cron (its a native linux utility) to run each job on a specific schedule (depending on your host, there may be control panel help for setting it up)
nbruley replied on at Permalink Reply
Excellent, thank you!
nbruley replied on at Permalink Reply
Any idea if newer versions of Concrete5 create smaller numbers of cache files? It's great to have a way to get rid of them, but it doesn't relieve the issue of probably over 1,000 files being created due to the cache...
Tate204 replied on at Permalink Reply
Tate204
d) If your server doesn't have adequate Cron, you can use online cron job service like http://www.easycron.com