|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
dab Smarty Rookie
Joined: 17 Aug 2003 Posts: 13
|
Posted: Sun Aug 24, 2003 12:51 pm Post subject: cache_id=PHPSESSID |
|
|
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 |
|
messju Administrator
Joined: 16 Apr 2003 Posts: 3336 Location: Oldenburg, Germany
|
Posted: Mon Aug 25, 2003 12:34 pm Post subject: |
|
|
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 |
|
|
|
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
|