im-richard / Scaffold

Extend, combine and compress CSS
http://github.com/IAMRichardT/Scaffold/wiki
161 stars 19 forks source link

&recache #31

Open pdclark opened 14 years ago

pdclark commented 14 years ago

Adding &recache would clear the entire cache in the old Scaffold. I don't see that anywhere in the new. Is that correct? Is there any reason this shouldn't be added to the __contruct method of Scaffold_Cache_File?: if ( isset( $_GET['recache'] ) ) { $this->delete_all(); }

anthonyshort commented 14 years ago

The reason I didn't include it was that anyone could spam &recache on your Scaffold install and possibly overload the server. It would have to be a lot, but it could happen.

Alternatively, I could make an extension that let you use a key-phrase that would recache it. So you could set the phrase in the setting, and when that is seen, it will recache everything. This wouldn't take very long to make, and would be pretty secure.