From version 1.1 >
edited by Ecaterina Moraru (Valica)
on 2012/02/29
To version < 2.1 >
edited by Ecaterina Moraru (Valica)
on 2012/03/07
>
Change comment: added cache #latestBlogPostsCache set to 604800s = 1 week

Summary

Details

XWiki.WikiMacroClass[0]
Macro code
... ... @@ -67,5 +67,7 @@
67 67  #set($blogDoc = $xwiki.getDocument('xwiki:Blog.BlogSheet' ))
68 68  #getBlogEntries($blogDoc $entries)
69 69  {{/velocity}}{{velocity}}
70 +{{cache id='latestBlogPostsCache' timeToLive='604800'}}
70 70  #displayBlog($entries 'latestposts' true true)
72 +{{/cache}}
71 71  {{/velocity}}

Get Connected