Thanks for the question.
The WP_CACHE constant, which you might choose to declare in your wp-config.php file, relates to page caching, not object caching. Therefore this object caching plugin does nothing with it.
Thread Starter
islp
(@islp)
Thanks. I could not find any docs about WP_CACHE, I only found similar misleading method names referring to object caching.
Thread Starter
islp
(@islp)
@olliejones
This is what WP docs say:
“Prior to WordPress 2.5, data stored using the wp_cache functions was stored persistently if you added define(‘WP_CACHE’, true) to your wp-config.php file.
This is no longer the case, and adding the define will have no effect unless you install a persistent cache plugin (see examples below).”
And, in the “examples below” there’s your plugin too.
https://developer.wordpress.org/reference/classes/wp_object_cache/