[wp-hackers] $wpdb cacheing?
peter.westwood at ftwr.co.uk
Mon Aug 20 12:19:52 GMT 2007
-----BEGIN PGP SIGNED MESSAGE-----
Stephen Rider wrote:
> On this page <http://codex.wordpress.org/Function_Reference/WP_Cache> it
> "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.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the wp-hackers