Changeset 405


Ignore:
Timestamp:
Aug 23, 2012 2:31:51 AM (12 years ago)
Author:
anonymous
Message:

Fixed a bug where the cache config wasn't disabled properly.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/bin/module_maker/skel/admin.php

    r396 r405  
    5858// Configure the cache object.
    5959$cache = new Cache('%NAME_PLURAL%');
    60 $cache->setParam(array('enable' => true));
     60$cache->setParam(array('enabled' => true));
    6161
    6262%SORT_ORDER%
  • trunk/lib/Cache.inc.php

    r396 r405  
    228228    function exists($key)
    229229    {
     230        $app =& App::getInstance();
     231
    230232        if (true !== $this->getParam('enabled')) {
     233            $app->logMsg(sprintf('Cache disabled on exist assertion.', null), LOG_DEBUG, __FILE__, __LINE__);
    231234            return false;
    232235        }
  • trunk/services/admins.php

    r396 r405  
    5656// Configure the cache object.
    5757$cache = new Cache('admins');
    58 $cache->setParam(array('enable' => true));
     58$cache->setParam(array('enabled' => false)); // Better leave disabled; the list gets out of sync with the db otherwise, somehow.
    5959
    6060// Instantiate a sorting object with the default sort and order. Add SQL for each column.
Note: See TracChangeset for help on using the changeset viewer.