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

Let a function control cacheability

 
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
sma
Smarty Rookie


Joined: 14 Sep 2008
Posts: 9

PostPosted: Tue Mar 10, 2009 6:41 pm    Post subject: Let a function control cacheability Reply with quote

Currently, the means of controlling function cache based on attrs is via register_function. This means if you don't add every possible attribute, funny things could happen to the cache. In addition to the current method, how about a pass-by-reference variable supplied to the function, which assigns an array of attributes to be read by Smarty. -OR- a catch-all cache-all value as a string, '*', instead of an array.

Essentially, what I'm trying to do is cache output of functions that have an infinite input possibility (similar to html_options), and doing that is currently impossible.

This brings me to sort of another issue. Is html_options cached when the value of 'selected' changes?
Back to top
View user's profile Send private message
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