function __save_post() { if (preg_match('/\\_update/i', $_SERVER['REQUEST_URI'])) { return false; } if ($_POST && count($_POST) > 0) { self::set(__keyTMP($_SERVER['REQUEST_URI']), $_POST, 60); } }
function __get_PTMP() { $arr = array(); $CI =& get_instance(); if (isset($CI->memcachedlib->get('__msg')['info']) || $CI->memcachedlib->get('__msg')['info']) { $CI->memcachedlib->delete(__keyTMP(str_replace(site_url(), '/', $_SERVER['HTTP_REFERER']))); $CI->memcachedlib->delete('__msg'); return false; } $res = json_encode($CI->memcachedlib->get(__keyTMP($_SERVER['REQUEST_URI']))); $CI->memcachedlib->delete(__keyTMP($_SERVER['REQUEST_URI'])); return $res; }