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

Clipcache - new focus method

 
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 -> 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:   
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 -> 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