Author |
Message |
Topic: Caching to Memcached with No-Cache Plugins [solved] |
mankyd
Replies: 2
Views: 5758
|
Forum: General Posted: Tue Jan 06, 2009 4:53 pm Subject: Caching to Memcached with No-Cache Plugins [solved] |
Thanks for the feedback. We look forward to Smarty3! |
Topic: Caching to Memcached with No-Cache Plugins [solved] |
mankyd
Replies: 2
Views: 5758
|
Forum: General Posted: Mon Jan 05, 2009 8:06 pm Subject: Caching to Memcached with No-Cache Plugins [solved] |
Howdy everybody. We recently ran into a problem using template caching across multiple webservers and we're wondering if anyone else has tackled this problem.
We are trying to setup template cachin ... |
Topic: Reversing Smarty's array_map functionality |
mankyd
Replies: 1
Views: 11517
|
Forum: Tips and Tricks Posted: Sun Oct 26, 2008 12:48 am Subject: Reversing Smarty's array_map functionality |
I just read the news that Smarty 3 is under development. Congrats guys! (there is a certain level of irony for me here, as I am working on a smarty-like templating engine for another language.)
I j ... |
Topic: nocache Function Bug |
mankyd
Replies: 5
Views: 11107
|
Forum: Bugs Posted: Tue Aug 05, 2008 9:09 pm Subject: nocache Function Bug |
Woo! Reproduction steps! 3 files required: test.php, cache.tpl, no_cache.tpl.
cache.tpl makes a few calls to {cache_me}. Each call to {cache_me} instantiates a new Smarty object which runs a templa ... |
Topic: nocache Function Bug |
mankyd
Replies: 5
Views: 11107
|
Forum: Bugs Posted: Tue Aug 05, 2008 8:27 pm Subject: nocache Function Bug |
Details:
We turned on template caching and repeatedly displayed a single template in our page, each with a different cache_id. The template contained a non-cacheable function in it.
We discovered ... |
Topic: Performance Tweak I've Made - Is It Safe? |
mankyd
Replies: 7
Views: 17557
|
Forum: Tips and Tricks Posted: Mon May 19, 2008 1:51 am Subject: Performance Tweak I've Made - Is It Safe? |
We use a lot of modifiers, but we never want to map a modifier to the individual members of an array. 99% of the arrays in our code are simply array of objects that we want to loop over. I can't re ... |
Topic: Performance Tweak I've Made - Is It Safe? |
mankyd
Replies: 7
Views: 17557
|
Forum: Tips and Tricks Posted: Fri May 16, 2008 10:38 pm Subject: Performance Tweak I've Made - Is It Safe? |
I've found one break in this, though it doesn't affect our code base. If you try to run a modifier on an array, it won't work. Smarty's run_mod_handler() function requires all modifiers to be register ... |
Topic: Reversing Smarty's array_map functionality |
mankyd
Replies: 1
Views: 11517
|
Forum: Tips and Tricks Posted: Fri May 16, 2008 10:32 pm Subject: Reversing Smarty's array_map functionality |
When you apply a modifier to a variable in Smarty it will, by default, test to see if it is an array. If it is, it runs array_map() on the array, applying the function to each element of the array rat ... |
Topic: Performance Tweak I've Made - Is It Safe? |
mankyd
Replies: 7
Views: 17557
|
Forum: Tips and Tricks Posted: Wed May 14, 2008 8:49 pm Subject: Performance Tweak I've Made - Is It Safe? |
Unfortunately template caching is sort of out of the picture for our site. Its too large and dynamic. Many elements could never be cached, and those that could be would require complex logic to achiev ... |
Topic: Performance Tweak I've Made - Is It Safe? |
mankyd
Replies: 7
Views: 17557
|
Forum: Tips and Tricks Posted: Wed May 14, 2008 6:17 am Subject: Performance Tweak I've Made - Is It Safe? |
We have an extended version of the Smarty class we're using where I work. In this same file, we've defined a handful of plugins and modifiers that we generally use everywhere. Thus, we wrote a registe ... |
Topic: $->display() defered/buffered execution? |
mankyd
Replies: 2
Views: 6212
|
Forum: General Posted: Sat Apr 12, 2008 3:25 am Subject: $->display() defered/buffered execution? |
Hi there, derik. There's a couple of ways to go about this. To be honest, I don't agree with you when you say that putting all the display's at the bottom disrupts flow. Quite the opposite, but clumpi ... |
Topic: Extending Smarty and the Smarty_Compiler |
mankyd
Replies: 1
Views: 9391
|
Forum: Feature Requests Posted: Thu Apr 10, 2008 5:36 pm Subject: Extending Smarty and the Smarty_Compiler |
I've been working with an extended version of the Smarty class for a few days now and had to write a prefilter plugin recently. I've just discovered, however, that the Smarty_Compiler class does not h ... |
Topic: require_once is slowing down execution times |
mankyd
Replies: 1
Views: 6056
|
Forum: Smarty Development Posted: Thu Apr 10, 2008 12:45 pm Subject: require_once is slowing down execution times |
Just read your post, quicksilver. The problem with using a conditional is that conditional includes prevent op-code caches from caching the included file. Conversely, op-code caches speed up require_o ... |
Topic: Smarty vs. Drupal Vs Joomla vs Django vs. wiki etc |
mankyd
Replies: 4
Views: 19720
|
Forum: General Posted: Wed Apr 09, 2008 9:21 pm Subject: Smarty vs. Drupal Vs Joomla vs Django vs. wiki etc |
I can't point you in the direction of a comparison, but I can give a brief explanation myself.
First, Wiki and Smarty are both templating languages. Smarty also includes code to interpret its langu ... |
Topic: $default_modifiers Causes Troubles, but I Need It |
mankyd
Replies: 3
Views: 6042
|
Forum: General Posted: Wed Apr 09, 2008 4:42 pm Subject: $default_modifiers Causes Troubles, but I Need It |
Hmm... well, I looked into it and came up with the following prefilter:
function smarty_prefilter_escape_output($source, &$smarty) {
return preg_replace(array('/{ ... |
|