|
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 |
zoullou Smarty n00b
Joined: 28 Oct 2004 Posts: 2
|
Posted: Thu Dec 30, 2004 7:20 pm Post subject: Cache and content with group perm |
|
|
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 .
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
See you[/b] |
|
Back to top |
|
messju Administrator
Joined: 16 Apr 2003 Posts: 3336 Location: Oldenburg, Germany
|
Posted: Thu Dec 30, 2004 8:02 pm Post subject: |
|
|
smarty already does that. the 2nd parameter to fetch() is the cache_id. |
|
Back to top |
|
zoullou Smarty n00b
Joined: 28 Oct 2004 Posts: 2
|
Posted: Thu Dec 30, 2004 11:03 pm Post subject: |
|
|
Ok thanks |
|
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
|