ore cache files; relative to `WP_CONTENT_DIR`. * * @since 140422 First documented version. * * @var string Absolute server directory path. */ define('ZENCACHE_DIR', WP_CONTENT_DIR.'/'.'cache/zencache/cache'); } if (!defined('ZENCACHE_MAX_AGE')) { /** * Cache expiration time. * * @since 140422 First documented version. * * @var string Anything compatible with PHP's {@link \strtotime()}. */ define('ZENCACHE_MAX_AGE', '7 days'); } if (!defined('ZENCACHE_EXCLUDE_URIS')) { /** * URI exclusions. * * @since 140422 First documented version. * * @var string A regular expression; else an empty string. */ define('ZENCACHE_EXCLUDE_URIS', ''); } if (!defined('ZENCACHE_EXCLUDE_CLIENT_SIDE_URIS')) { /** * Client-side URI exclusions. * * @since 151220 Adding support for client-side URI exclusions. * * @var string A regular expression; else an empty string. */ define('ZENCACHE_EXCLUDE_CLIENT_SIDE_URIS', ''); } if (!defined('ZENCACHE_EXCLUDE_REFS')) { /** * HTTP referrer exclusions. * * @since 140422 First documented version. * * @var string A regular expression; else an empty string. */ define('ZENCACHE_EXCLUDE_REFS', ''); } if (!defined('ZENCACHE_EXCLUDE_AGENTS')) { /** * HTTP user-agent exclusions. * * @since 140422 First documented version. * * @var string A regular expression; else an empty string. */ define('ZENCACHE_EXCLUDE_AGENTS', '/(?:w3c_validator)/i'); } if (!defined('ZENCACHE_404_CACHE_FILENAME')) { /** * 404 file name (if applicable). * * @since 140422 First documented version. * * @var string A unique file name that will not conflict with real paths. * This should NOT include the extension; basename only please. */ define('ZENCACHE_404_CACHE_FILENAME', '----404----'); } $GLOBALS[GLOBAL_NS.'_advanced_cache'] = new AdvancedCache(); $GLOBALS[GLOBAL_NS.'__advanced_cache'] = &$GLOBALS[GLOBAL_NS.'_advanced_cache']; if (!isset($GLOBALS['quick_cache__advanced_cache'])) { $GLOBALS['quick_cache__advanced_cache'] = &$GLOBALS[GLOBAL_NS.'_advanced_cache']; }