Disable Object Cache
-
I’d like to disable the object cache, as the file would still load even tho the plugin is not active.
In wp-includes/load.php the code looks like this:
if ( file_exists( WP_CONTENT_DIR . '/object-cache.php' ) ) { require_once ( WP_CONTENT_DIR . '/object-cache.php' ); $_wp_using_ext_object_cache = true; }
Therefore it will always include the object-cache.php file even tho we dont need it now.
An easy fix could be:
wp-includes/load.php
if ( file_exists( WP_CONTENT_DIR . '/object-cache.php' ) && WP_OBJECT_CACHE ) { require_once ( WP_CONTENT_DIR . '/object-cache.php' ); $_wp_using_ext_object_cache = true; }
wp-includes/default-constants.php
if ( !defined('WP_OBJECT_CACHE') ) define('WP_OBJECT_CACHE', true);
Why is it currently not possible to disable object cache?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Disable Object Cache’ is closed to new replies.