Closed alexbogias closed 1 year ago
Something like this could work:
Take the object-cache.php
file from this repo, add it to wp-content
with the name wp-memcached.php
.
Then, add an object-cache.php
file in the folder with something like this:
<?php
if ( defined( 'YOUR_CONSTANT_NAME' ) && true === YOUR_CONSTANT_NAME ) {
return;
}
require __DIR__ . '/wp-memcached.php';
Evil Smart!
Is there any way to include object-cache.php file in repository and disable it in development environment with a constant or something?