WordPress: Quick Cache Plugin – Setting up a Custom ‘Empty Cache’ Script

WordpressThis entry is based on a need that I came across using the great WordPress “Quick Cache” plug in. While I found the plug in to be perfect for my needs (and much more compatible than “W3 Total Cache” or “WP Super Cache“) I was running into daily ISP requests from my service provider that the “cache” folder was filling up rapidly with 1000’s of files causing what they call “Maxdir size limit alert

The official memo was:

wp-content/cache/ are exceeding the maxdir size limit. This directory is filling up with thousands of files rapidly, causing issues for the server.

To be honest I didn’t see a working section in the “Quick Cache” plugin to deal with this issue
(which is to empty the cache folder daily or more)

So I came up with a solution:

2 things are needed

– A script
– a plugin to run the script automatically thru WordPress (at intervals)

1- Install plugin

2- Go to – CRONJOBS–>MANAGE CRONJOBS—>”Add new Cron job

3- add script to section “Custom PHP to Run
(note for script, you’ll need to grab it from this article)

4- set “schedule” to “Once Daily” (or your desired amount)

5- SAVE changes

This will run a PHP script that will go into the “Quick Cache” folder and empty the contents daily. It’s nice because it works seamlessly in the background

Related Posts Plugin for WordPress, Blogger...

4 thoughts on “WordPress: Quick Cache Plugin – Setting up a Custom ‘Empty Cache’ Script”

  1. Hey Ι am so eхcited I found your blog pаge,
    I really found you by errοr, whіlе I waѕ reseaгсhing оn Аskjeeve for ѕomething else, Αnуwayѕ I am here nοw аnԁ wоuld just like to sаy
    manу thankѕ foг a tremenԁous ρoѕt and a all
    гound еnjoyаble blog (Ι also lοve the theme/dеѕіgn), Ι don’t haѵe tіme to rеaԁ it all at the minute but Ӏ have bοoκ-markeԁ іt and also аԁdеԁ your RSS feeds, so ωhen I have time I
    ωill be baсκ to геаd more, Pleasе
    do κeeр up the superb b.

  2. Hi there to every one, the contents existing at this web site are really remarkable for people knowledge, well, keep up the good work

Comments are closed.