Changeset 924

Show
Ignore:
Timestamp:
09/18/07 17:14:30 (1 year ago)
Author:
mikey
Message:

enable cache if not in test mode

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/main/php/net/stubbles/websites/memphis/stubMemphisProcessor.php

    r923 r924  
    7171    protected function createTemplate() 
    7272    { 
    73         return new stubMemphisTemplate(stubRegistry::getConfig('net.stubbles.websites.memphis.templateDir', stubConfig::getLibPath() . '/../templates')); 
     73        $template =  new stubMemphisTemplate(stubRegistry::getConfig('net.stubbles.websites.memphis.templateDir', stubConfig::getLibPath() . '/../templates')); 
     74        if (stubRegistry::hasConfig('net.stubbles.mode') == true && stubRegistry::getConfig('net.stubbles.mode') != 'test') { 
     75            $template->enableCache(); 
     76        } 
     77         
     78        return $template; 
    7479    } 
    7580