Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.
Clipcache - new focus method

 
Post new topic   Reply to topic    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
i-litovan
Smarty Rookie


Joined: 03 Aug 2013
Posts: 13

PostPosted: Sat Sep 21, 2013 11:37 pm    Post subject: Clipcache - new focus method Reply with quote

Hi

I modernization clipcache...

{clipcache group="test123" cache_id="cache_key_page_`$page.uid`" cache_lifetime=5}

So you can use a variable in blocks clipcache
prefilter.clipcache.php modification...
Code:


$replacements[] = ' {include_clipcache file="'. $file_name . '"
          '.$clip_blocks[1][0].'}';

Back to top
View user's profile Send private message
i-litovan
Smarty Rookie


Joined: 03 Aug 2013
Posts: 13

PostPosted: Wed Sep 25, 2013 5:56 pm    Post subject: Reply with quote

Code:
{clipcache[50x] group="headerMenu" cache_id="cache_key_page_`$page.uid`" cache_lifetime=-1}

--

{/clipcache[50x]}

VS

{clipcache group="headerMenu" cache_id="cache_key_page_`$page.uid`" cache_lifetime=-1}

--

{/clipcache group="headerMenu" cache_id="cache_key_page_`$page.uid`" cache_lifetime=-1}
Back to top
View user's profile Send private message
i-litovan
Smarty Rookie


Joined: 03 Aug 2013
Posts: 13

PostPosted: Wed Sep 25, 2013 6:13 pm    Post subject: Reply with quote

Code:


{clipcache_0 group="headerMenu" cache_id="cache_key_page_`$page.uid`" cache_lifetime=-1}
         
         fwefewfew
         
{/clipcache_0}

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> General 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