From: Matthew M. <ma...@tu...> - 2007-04-12 15:59:28
|
I have committed some changes to the Template.php file. You will need to add define('CACHE_TPL_LOCALLY', true); to your config/core/config.php file. You will also need to create a writable directory in templates named "cache": templates/cache/ If the define is true, the template caching will be saved locally. If false, it pops back to the /tmp/ directory (or whatever is set in config.php). Note that if the define is not set in the config.php file, Template assumes it as false. This will prevent breakage if people don't update their config.php file. Please test. Thanks, Matt On Mon, 2007-04-09 at 14:48 -0400, Verdon Vaillancourt wrote: > Yes, that config option is already there, just not default. Of > course, whatever directory is configured needs to be writable by the > webserver user. I tested with a dir that was user:user 755 and > although no errors were produced, no caching occurred. > > verdon > > > On 9-Apr-07, at 2:22 PM, Shaun Murray wrote: > > > How about taking them out of /tmp and putting them in a cache folder > > local to the branch using http://pear.php.net/manual/en/ > > package.html.html-template-sigma.html-template- > > sigma.setcacheroot.php ? > > > > > > Shaun > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Phpwebsite-developers mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phpwebsite-developers -- Matthew McNaney Electronic Student Services Appalachian State University http://phpwebsite.appstate.edu |