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 and content with group perm

 
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 -> Feature Requests
View previous topic :: View next topic  
Author Message
zoullou
Smarty n00b


Joined: 28 Oct 2004
Posts: 2

PostPosted: Thu Dec 30, 2004 7:20 pm    Post subject: Cache and content with group perm Reply with quote

Hi,

Smarty cache is a very good feature but i use XOOPS for my web site who use smarty. XOOPS have a group permission feature who display different content for group. If i put a web page in cache, group perm feature is broken Crying or Very sad .
Could you make an option to have different version of this page (one for each group).
For exemple, [php:1:a073b2cd8b]$smarty->fetch('foo.tpl','name_of_group1'); [/php:1:a073b2cd8b]
This method can create a cache file different that for this method :[php:1:a073b2cd8b]$smarty->fetch('foo.tpl','name_of_group2'); [/php:1:a073b2cd8b]

Sorry for my bad english Very Happy

See you[/b]
Back to top
View user's profile Send private message Visit poster's website
messju
Administrator


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

PostPosted: Thu Dec 30, 2004 8:02 pm    Post subject: Reply with quote

smarty already does that. the 2nd parameter to fetch() is the cache_id.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
zoullou
Smarty n00b


Joined: 28 Oct 2004
Posts: 2

PostPosted: Thu Dec 30, 2004 11:03 pm    Post subject: Reply with quote

Ok thanks
Back to top
View user's profile Send private message 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 -> Feature Requests 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