diff --git a/cache-enabler.php b/cache-enabler.php index af80365..8637567 100644 --- a/cache-enabler.php +++ b/cache-enabler.php @@ -41,6 +41,12 @@ if ( ! defined( 'CACHE_ENABLER_DIR' ) ) { define( 'CACHE_ENABLER_DIR', __DIR__ ); } +if (! defined('CACHE_ENABLER_CACHE_DIR')) { + define('CACHE_ENABLER_CACHE_DIR', WP_CONTENT_DIR . '/cache/cache-enabler'); +} +if (! defined('CACHE_ENABLER_SETTINGS_DIR')) { + define('CACHE_ENABLER_SETTINGS_DIR', WP_CONTENT_DIR . '/settings/cache-enabler'); +} // deprecated constants (1.7.0) define( 'CE_VERSION', CACHE_ENABLER_VERSION ); diff --git a/inc/cache_enabler_disk.class.php b/inc/cache_enabler_disk.class.php index 76af3fd..3d6910a 100644 --- a/inc/cache_enabler_disk.class.php +++ b/inc/cache_enabler_disk.class.php @@ -20,7 +20,7 @@ final class Cache_Enabler_Disk { * @var string */ - public static $cache_dir = WP_CONTENT_DIR . '/cache/cache-enabler'; + public static $cache_dir = CACHE_ENABLER_CACHE_DIR; /** @@ -32,7 +32,7 @@ final class Cache_Enabler_Disk { * @var string */ - private static $settings_dir = WP_CONTENT_DIR . '/settings/cache-enabler'; + private static $settings_dir = CACHE_ENABLER_SETTINGS_DIR; /**