Compiled templates problems
| From: | Valerio Santinelli | Date: | Wed, 23 Jan 2002 10:25:37 +0000 |
| Subject: | Compiled templates problems | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-2568@lists.php.net to get a copy of this message | ||
I am experiencing some problems with the compiled templates (the ones in templates_c).
I noticed that under some circumstances they are not working the correct way. It happens on sites
using parameters in the URL to decide which template to render in the same .php page. The problem
seems to be related to files ownership (or so I guess) since I had this problem on an account on
SourceForge.net where I cannot directly assign full ownership of the templates_c directory to the
webserver's user.
i tried setting the directories permissions like that:
drwxrwxrwt 28 tanis portalap 4096 Jan 18 08:14 templates_c
and inside templates_c the files get generated with that permissions (nobody/nogroup is the correct
Apache user):
drwxrwxrwt 28 tanis portalap 4096 Jan 18 08:14 .
drwxr-sr-x 11 tanis portalap 4096 Jan 11 01:52 ..
drwxr-x--x 3 nobody nogroup 4096 Jan 18 07:40 07
drwxr-x--x 3 nobody nogroup 4096 Jan 18 08:14 0b
drwxr-x--x 3 nobody nogroup 4096 Jan 18 07:40 13
drwxr-x--x 3 nobody nogroup 4096 Jan 18 07:40 15
drwxr-x--x 3 nobody nogroup 4096 Jan 18 08:13 1c
drwxr-x--x 3 nobody nogroup 4096 Jan 18 08:13 26
drwxr-x--x 3 nobody nogroup 4096 Jan 18 07:40 3d
drwxr-x--x 3 nobody nogroup 4096 Jan 18 08:13 41
drwxr-x--x 3 nobody nogroup 4096 Jan 18 08:13 49
drwxr-x--x 3 nobody nogroup 4096 Jan 18 07:40 5f
drwxr-x--x 4 nobody nogroup 4096 Jan 18 08:13 68
drwxr-x--x 4 nobody nogroup 4096 Jan 18 08:13 70
drwxr-x--x 3 nobody nogroup 4096 Jan 18 08:13 82
drwxr-x--x 3 nobody nogroup 4096 Jan 18 07:40 84
drwxr-x--x 3 nobody nogroup 4096 Jan 18 07:40 8b
drwxr-x--x 3 nobody nogroup 4096 Jan 18 07:40 8c
drwxr-x--x 4 nobody nogroup 4096 Jan 18 08:13 a2
drwxr-x--x 3 nobody nogroup 4096 Jan 18 07:40 aa
drwxr-x--x 4 nobody nogroup 4096 Jan 18 08:13 bc
drwxr-x--x 3 nobody nogroup 4096 Jan 18 07:40 be
drwxr-x--x 3 nobody nogroup 4096 Jan 18 08:13 bf
drwxr-x--x 3 nobody nogroup 4096 Jan 18 08:13 cc
drwxr-x--x 4 nobody nogroup 4096 Jan 18 08:13 ce
drwxr-x--x 3 nobody nogroup 4096 Jan 18 07:40 d7
drwxr-x--x 3 nobody nogroup 4096 Jan 18 08:14 f9
drwxr-x--x 3 nobody nogroup 4096 Jan 18 08:13 fa
But still it happens that pages are displayed wrong at random. I can clearly see this happening
since I'm checking in every page that the user is actually logged and some pages behave like
you have not yet logged on, but after a few reloads they are working fine, then you reload again and
they're wrong again.. Any idea?
--
Valerio Santinelli
HateSeed.com Founder (http://www.hateseed.com)
In Flames Italia Webmaster (http://www.inflames.it)
My Lab (http://tanis.hateseed.com)