[wp-hackers] WP-Cache vs. eAccelerator vs. Memcache vs. ... (Yeah, another server opt. discussion)

Computer Guru computerguru at neosmart.net
Sun Oct 28 16:15:47 GMT 2007

What's more painful is how many people use it >.<

WP's object caching model is inherintly much easier to use: you cache and
object and you can delete that object from cache. Whereas WP-Cache caches
the entire document as an HTML file, object cache caches objects in a global
"drawer" where you can call and delete whatever you want. Only what you want
cached gets cached in the first place, and its easy to nullify that cache on
a certain action.

object-caching all DB references + an opcode caching engine gets you
_almost_ the same performance as pure HTML (assuming WP actually uses object
cache for everything). Since WP-Cache isn't even pure HTML (it still has to
request a PHP file which is NOT opcode cached) and since HTML files reside
on the disk (verses opcode caching and object caching where they're in the
memory) you've got quite a bit of overhead.

(Speaking from personal experience here, WP-Cache was enabled w/out any
object cache or opcode caching engine and my site went down with a
slashdotting. Removed WP-Cache, installed XCache + WP XCache plugin +
"object cachified" my plugins and my site withstood the next slashdotting :)

The Big Question:
Does anyone know if WP uses object caching throughout, or if there are
functions in the core which still need to be "object cachified?" (made aware
of object caching and taking advantage of it if present)

On 10/28/07, Ozh <ozh at planetozh.com> wrote:
> While searching how to make one of my plugin compatible with WP-Cache
> I came across an interesting post on the same topic:
> <http://elliottback.com/wp/archives/2005/07/12/getting-wp-cache-to-work/>
> Basically :
> 1) rewrite all internal WP functions in your plugin to make it
> completely WP independent
> 2) include the plugin with the mclude token.
> I've awarded this the PITA Of The Year medal.
> On 10/28/07, Omry Yadan <omry at yadan.net> wrote:
> > Indeed.
> >
> > I banged my head on wp-cache trying to get my stats plugin to work with
> > it in a portable way, it's quite a pain.
> >
> >
> --
> http://FrenchFragFactory.net ~ Daily Quake News
> http://planetOzh.com ~ Blog and WordPress Stuff
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers

Computer Guru
NeoSmart Technologies

More information about the wp-hackers mailing list