Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

cache_id=PHPSESSID

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
dab
Smarty Rookie


Joined: 17 Aug 2003
Posts: 13

PostPosted: Sun Aug 24, 2003 12:51 pm    Post subject: cache_id=PHPSESSID Reply with quote

i was wondering if it would be possible to pass a sess id to the cache id so each user/viewer has their own cached template.
could this serve a purpose or will it only slow down the performance?
Back to top
View user's profile Send private message
messju
Administrator


Joined: 16 Apr 2003
Posts: 3336
Location: Oldenburg, Germany

PostPosted: Mon Aug 25, 2003 12:34 pm    Post subject: Reply with quote

it's possible. you just should ensure that your garbage-collector removes the cache-group when the session expires.

only you can judge if it is an improvement. if a page is never visited twice in a session it's just overhead to write the files to disk without reusing them, of course.

if you mainly use your session to track authentication it may be better to create one cache per userid instead of one per session maybe.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP