Tag Archives: Quick Cache

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: Continue reading WordPress: Quick Cache Plugin – Setting up a Custom ‘Empty Cache’ Script

PHP Script to Delete Files on Server (from a folder)

PHP SCRIPT TO DELETE FILES ON SERVER?
(OR how to set up a script that ONLY deletes the contents of a folder and NOT the folder itself)

Objective: You need to create a PHP script and place it in your ROOT directory

Disclaimer: Read directions and MAKE SURE your path is correct or you could end up deleting stuff you didn’t want to
(in other words run a test after you’ve backed up your site)

———————————-
You need to create a PHP script and place it in your ROOT directory

1- to do this, create a text document and paste in the following code: Continue reading PHP Script to Delete Files on Server (from a folder)