[xwiki-users] problem with the cache macro

2012-11-07 Thread aflament
May be a basic problem but when I use the {{cache}} macro, the content is never refreshed (not after the default 5 minutes, nor the specified time by the timeToLive). I'm using XWiki 4.2. -- View this message in context:

Re: [xwiki-users] problem with the cache macro

2012-11-07 Thread Vincent Massol
Hi, On Nov 7, 2012, at 9:39 AM, aflament aflam...@geodisbm.com wrote: May be a basic problem but when I use the {{cache}} macro, the content is never refreshed (not after the default 5 minutes, nor the specified time by the timeToLive). I'm using XWiki 4.2. Could you show us exactly a

Re: [xwiki-users] problem with the cache macro

2012-11-07 Thread aflament
{{cache timeToLive=14400}} {{groovy}} import groovy.sql.Sql request = '...' sql = Sql.newInstance( '...', '...', '...', '...' ) sql.eachRow( request ) { println * $it.qui } {{/groovy}} {{/cache}} -- View this message in context:

Re: [xwiki-users] problem with the cache macro

2012-11-07 Thread Thomas Mortagne
The cache macro refresh its content when the macro has not been used during 5 minutes actually not when it's 5 minutes old AFAIK. On Wed, Nov 7, 2012 at 11:00 AM, aflament aflam...@geodisbm.com wrote: {{cache timeToLive=14400}} {{groovy}} import groovy.sql.Sql request = '...' sql =

Re: [xwiki-users] problem with the cache macro

2012-11-07 Thread aflament
Since in your installation, the page is accessed every 5 minutes by a cron script, the cache never expires. The cron script is a simple call to curl that copy the content of the wiki page to a static html page. The aim is to make a home page that is very fast to render. Disabling the pooling

[xwiki-users] Livetable filtering on a column added by custom json

2012-11-07 Thread Eugen Colesnicov
Hello! I diving deeper and deeper in a livetables ... I created custom JSON page with this content: {{include document=XWiki.LiveTableResultsMacros /}} {{velocity}} #if($!{request.xpage} == 'plain') $response.setContentType('application/json') #end #set($map = {})

Re: [xwiki-users] problem with the cache macro

2012-11-07 Thread Vincent Massol
On Nov 7, 2012, at 11:30 AM, Thomas Mortagne thomas.morta...@xwiki.com wrote: The cache macro refresh its content when the macro has not been used during 5 minutes actually not when it's 5 minutes old AFAIK. hmm I've never fully realized this actually… :) So I guess we need to work on also

Re: [xwiki-users] problem with the cache macro

2012-11-07 Thread Thomas Mortagne
On Wed, Nov 7, 2012 at 7:28 PM, Vincent Massol vinc...@massol.net wrote: On Nov 7, 2012, at 11:30 AM, Thomas Mortagne thomas.morta...@xwiki.com wrote: The cache macro refresh its content when the macro has not been used during 5 minutes actually not when it's 5 minutes old AFAIK. hmm