Re: Re: [SMARTY] please help!

From: Date: Sun, 20 Apr 2003 15:03:42 +0000
Subject: Re: Re: [SMARTY] please help!
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-9352@lists.php.net to get a copy of this message
On Sun, Apr 20, 2003 at 04:57:27PM +0100, Rasmus Schultz wrote: > recreating the folder worked - I switched use_sub_dirs to false, the > templates_c folder contents look much neater now ... why is that even > an option? or rather, why is use_sub_dirs set to try by default? most unix-filesystems tend to get slower on directories with a lot of files in it. it is better (performance-wise) to have a deeper directory-structure with less files per directory. > I don't see how it could be an advantage to have hundreds of folders > and files, instead of just one neat folder with the full set of > compiled templates? > > --- At 2003-04-21, 01:54:00, Eaden McKee <email@eadz.co.nz> wrote: > > >Rasmus Schultz wrote: > > > >>our web site (Smarty installation) has crashed - it looks like > >>the "templates_c" folder has been corrupted, all scripts give > >>me the same error: > >> > >>unable to create file templates_c/%192/%1926952680/main.tpl.php because No such file or > >>directory > >> > >>in sheer desperation, I wiped the "templates_c" folder, and > >>disabled caching, same deal. I also downloaded and installed > >>the latest version (2.5.0) of Smarty, to no avail. > >> > >> > >Caching doesn't have any effect on compiled templates. > > > >>the weird thing is, the "templates_c" folder never had folders > >>name "%anything" in it - why would it suddenly start looking > >>for those??? the folders it had were named "128", "N26" etc. > >> > >> > >- Re create your template_c folder, give it 777 permissions ( chmod 777) > >- Set use subdirs to false : $Smarty->use_sub_dirs = FALSE; > >Hope that helps. > >Eaden. > > > > > >-- > >Smarty General Mailing List (http://smarty.php.net/) > >To unsubscribe, visit: http://www.php.net/unsub.php > > > > > -- > Smarty General Mailing List (http://smarty.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.smarty.general (#9352) next »