Changeset 172 for trunk/lib/Cache.inc.php
- Timestamp:
- Jun 15, 2006 7:59:45 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Cache.inc.php
r162 r172 47 47 function Cache($namespace='') 48 48 { 49 $app =& App::getInstance(); 50 49 51 $this->_ns = $namespace; 52 53 if (true !== $app->getParam('enable_session')) { 54 $app->logMsg('Cache disabled, enable_session is false.', LOG_DEBUG, __FILE__, __LINE__); 55 $this->setParam(array('enabled' => false)); 56 } 50 57 51 58 if (!isset($_SESSION['_cache'][$this->_ns])) { … … 191 198 return unserialize($_SESSION['_cache'][$this->_ns][$keyhash]); 192 199 } else { 200 $app->logMsg(sprintf('Missing %s from cache.', $key), LOG_DEBUG, __FILE__, __LINE__); 193 201 return false; 194 202 }
Note: See TracChangeset
for help on using the changeset viewer.