[wp-hackers] Expire the cache

Robert Deaton false.hopes at gmail.com
Thu Jan 26 22:34:21 GMT 2006


On 1/26/06, Chris Meller <chris at doesnthaveone.com> wrote:
> Plugin has been posted: http://incoherentcode.com/projects/cache-
> purge-plugin/
>
> Very rough, and I have to admit I'm not terribly good with dealing
> with files through PHP, so there's plenty of room for improvement,
> I'm sure. It was a pain to avoid using exec() or system(), but since
> those may or may not be available, it's all done using dir commands
> through PHP.
>
> Let me know if you have any problems, or spot some place that could
> be improved.

A reference for you and everyone else. The WP Cache code is pluggable,
so a simple deletion of these files is an unreliable way to flush the
cache. Memcached for example, stores its cache in RAM, so you need to
run the provided flushing method.


--
--Robert Deaton
http://somethingunpredictable.com


More information about the wp-hackers mailing list