APC Object Cache Backend

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

APC Object Cache Backend

Mark Jaquith
I was curious as to how easy it would be to create an object cache  
backend that interfaced with APC (Advanced PHP Cache).  Real easy, it  
turns out, thanks to Ryan's Memcached backend.  It was literally just  
an issue of changing half a dozen function names and saving the thing.

I'm not seeing much of a speed gain, but then Ryan said that for  
single blogs the Memcached backend didn't do much either.

Anyway, I'm attaching it for anyone who is interested.  Rename it  
"object-cache.php" and place in /wp-content/

It's set up to fail gracefully (fall back to default cache) if APC  
functions aren't available.

Oh, Ryan... you may want to look at the key generating method in the  
Memcached one... I had to modify it to prepend something specific to  
the blog (I used ABSPATH) because I was getting leaking between blogs  
on the same server, otherwise.
--
Mark Jaquith
http://txfx.net/




_______________________________________________
wp-hackers mailing list
[hidden email]
http://lists.automattic.com/mailman/listinfo/wp-hackers
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: APC Object Cache Backend

Mark Jaquith
On Feb 3, 2006, at 7:08 AM, Mark Jaquith wrote:

> Anyway, I'm attaching it for anyone who is interested.

At least I thought I was... let's try that again.


--
Mark Jaquith
http://txfx.net/



_______________________________________________
wp-hackers mailing list
[hidden email]
http://lists.automattic.com/mailman/listinfo/wp-hackers
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: APC Object Cache Backend

Mark Jaquith
On Feb 3, 2006, at 7:12 AM, Mark Jaquith wrote:

>> Anyway, I'm attaching it for anyone who is interested.
>
> At least I thought I was... let's try that again.

Okay then... stripping out attachments.  We can do it this way:

http://txfx.net/files/wordpress/apc-object-cache.phps

--
Mark Jaquith
http://txfx.net/


_______________________________________________
wp-hackers mailing list
[hidden email]
http://lists.automattic.com/mailman/listinfo/wp-hackers
Loading...