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:
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
{{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:
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 =
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
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 = {})
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
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