Merge pull request #14326 from civicrm/5.14
[civicrm-core.git] / tools / bin / scripts / memcache.php
1 <?php
2 require_once '../civicrm.config.php';
3 require_once 'CRM/Core/Config.php';
4 require_once 'CRM/Utils/Cache.php';
5
6 define('CIVICRM_USE_MEMCACHE', 1);
7
8 $config = CRM_Core_Config::singleton();
9 $cache = CRM_Utils_Cache::singleton();
10
11 $cache->set('CRM_Core_Config' . CRM_Core_Config::domainID(), $config);
12 CRM_Core_Error::debug('get', $cache->get('CRM_Core_Config' . CRM_Core_Config::domainID()));
13