Source of file _config.php
Size: 1,211 Bytes - Last Modified: 2021-12-24T06:44:18+00:00
/var/www/docs.ssmods.com/process/src/_config.php
12345678910111213141516171819202122232425262728 | <?php /** * * @author Deviate Ltd 2014-2015 http://www.deviate.net.nz * @package silverstripe-cachable * * Configure the module's storage: * * The default is to use "file" for the cache store via {@link Zend_Cache_Backend_File}, * but this can be overriden in YML config. See the README for more options. */ define('CACHEABLE_STORE_DIR_NAME', 'cacheable'); define('CACHEABLE_STORE_DIR_TEST', TEMP_FOLDER . DIRECTORY_SEPARATOR . 'cacheable_tests'); define('CACHEABLE_STORE_NAME', 'cacheablestore'); define('CACHEABLE_STORE_FOR', 'Cacheable'); define('CACHEABLE_STORE_TAG_DEFAULT', 'cacheable_tag_nav'); // Default Zend tag name for this cache define('CACHEABLE_STORE_TAG_DEFAULT_TEST', 'cacheable_tag_nav_test'); define('CACHEABLE_STORE_WEIGHT', 1000); define('CACHEABLE_STORE_DIR', CacheableConfig::cache_dir_path()); define('CACHEABLE_MODULE_DIR', __DIR__); CacheableConfig::configure(); SS_Cache::pick_backend(CACHEABLE_STORE_NAME, CACHEABLE_STORE_FOR, CACHEABLE_STORE_WEIGHT); // Ensure compatibility with PHP 7.2 ("object" is a reserved word), // with SilverStripe 3.6 (using Object) and SilverStripe 3.7 (using SS_Object) if (!class_exists('SS_Object')) class_alias('Object', 'SS_Object'); |