[wp-hackers] $wpdb cacheing?

Peter Westwood peter.westwood at ftwr.co.uk
Mon Aug 20 12:19:52 GMT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

Stephen Rider wrote:
> On this page <http://codex.wordpress.org/Function_Reference/WP_Cache> it
> says:
> 
> "Caching is not enabled by default."
> 
> So I'm confused as to why caching is happening anyways.  Unless that
> sentence is incorrect in the Codex?
> 

That sentence was ambiguous and I have tried to improve it.

Basically, the WP_Cache class builds an in memory cache of data
retrieved from the database during a single page load - this always happens.

The define that you can enable/disable extra functionality with
basically enables the storing of the cached data in files so that the
information is available to multiple page loads.

I hope this helps.

westi
- --
Peter Westwood
http://blog.ftwr.co.uk
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGyYboVPRdzag0AcURAnmWAJ4+mYq7avo74Ihp/vG6K5hOkMoM7QCdER9o
s2uvb1voKQPAk04aS2X4ob4=
=Eznd
-----END PGP SIGNATURE-----


More information about the wp-hackers mailing list