[wp-hackers] Object Cache API and Persistent Object Caching

Ryan Boren ryan at boren.nu
Wed Nov 9 00:33:58 GMT 2005


On Tue, 2005-11-08 at 14:24 -0800, Ryan Boren wrote:
> On Mon, 2005-11-07 at 20:51 -0500, Owen Winkler wrote:
> > Ryan Boren wrote:
> > > http://trac.wordpress.org/changeset/3011
> > > 
> > > This introduces a new object cache API.  You can see the implementation
> > > in the cache.php file.
> > 
> > Er...
> > 
> > http://example.com/wp-content/cache/users/{md5(username)}
> > 
> > Otherwise...  Cool!
> 
> http://trac.wordpress.org/ticket/1851
> http://trac.wordpress.org/changeset/3017
> 
> I added your key salting and also created empty index.php files in the
> cache dirs to prevent directory listings.

For added measure, let's give the cache files .php extensions and wrap
the serialized object in some php tags and a comment block.  We'll strip
those out before unserializing the object.

Ryan




More information about the wp-hackers mailing list