16

I am just reading the docs at https://codex.wordpress.org/Class_Reference/WP_Object_Cache and am not clear on something...

If I install an object cache plugin by adding the drop-in file object-cache.php to the wp-content directory do I need to add define('WP_CACHE', true) to my wp-config.php file to activate caching or will the drop-in file just start interacting with the cache by its mere presence?

1

1 Answer 1

8

No, including this constant with a value of true loads advanced-cache.php. Object-cache.php is loaded and used automatically.

See https://wordpress.org/support/article/editing-wp-config-php/

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.