Ignore:
Timestamp:
Jun 15, 2006 7:59:45 PM (18 years ago)
Author:
scdev
Message:

Q - added caching to ACL, and flush command to acl.cli.php

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Cache.inc.php

    r162 r172  
    4747    function Cache($namespace='')
    4848    {
     49        $app =& App::getInstance();
     50       
    4951        $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        }
    5057       
    5158        if (!isset($_SESSION['_cache'][$this->_ns])) {
     
    191198            return unserialize($_SESSION['_cache'][$this->_ns][$keyhash]);
    192199        } else {
     200            $app->logMsg(sprintf('Missing %s from cache.', $key), LOG_DEBUG, __FILE__, __LINE__);
    193201            return false;
    194202        }
Note: See TracChangeset for help on using the changeset viewer.