When adding object-cache.php to the wp-content directory, the object cache is enabled and files are written to disk at cache/object/key_version_all even when the W3TC plugin is not installed / the object cache feature is disabled.
In advanced-cache.php there are checks such as if ( $w3tc_config->get_boolean( 'pgcache.enabled' ) ) but there are no such checks in object-cache.php.
This is important to me, because my deployment process ensures that the advanced-cache.php and object-cache.php files are copied to the correct locations (which are not writable by WordPress). In that case, the object cache can become enabled even when I've told it not to be.
When adding
object-cache.php
to thewp-content
directory, the object cache is enabled and files are written to disk atcache/object/key_version_all
even when the W3TC plugin is not installed / the object cache feature is disabled.In
advanced-cache.php
there are checks such asif ( $w3tc_config->get_boolean( 'pgcache.enabled' ) )
but there are no such checks inobject-cache.php
.This is important to me, because my deployment process ensures that the
advanced-cache.php
andobject-cache.php
files are copied to the correct locations (which are not writable by WordPress). In that case, the object cache can become enabled even when I've told it not to be.Perhaps something like this?