e107sk.com

Retrieve Cache

on Thursday 14 May 2020
comments: 0

Example (from shortcode):

$e107cache = e107::getCache();

if($cacheData = $e107cache->retrieve('your_code'))
{
return $cacheData;
}

$cache_data = '';

$cache_data = $text;

$e107cache->set('your_code', $cache_data);
return $cache_data;


define('LW_CACHE_ENABLE', FALSE);

define('LW_CACHE_TAG', 'nomd5_linkwords');

if(LW_CACHE_ENABLE && ($temp = e107::getCache()->retrieve_sys(LW_CACHE_TAG))) {}

if(!vartrue($temp)) // Either cache disabled, or no info in cache (or error reading/processing cache)
{

}

0 Comments

Other links

Follow us