Hello, 

i have a specific wiki page that is quite slow to render because some groovy 
code and macros in there are quite slow. Fortunately, content does not change 
often, si i tried to make it faster for user by using cache rendering. 

Here is what is inside my xwiki.cfg: 


xwiki.rendering.defaultCacheDuration=3600 

And here is my xwiki.properties 


core.renderingcache.enabled=true 
core.renderingcache.documents=wiki:.* 
core.renderingcache.size=200 
# Default value is 300 (5 min). 
# core.renderingcache.duration=300 

I have also this inside my page: 


{{velocity}} 
$context.setCacheDuration(60) 
//complex content here that has a custom groovy macro and a velocity include 
{{/velocity}} 


{{groovy}} 
System.out.println("***************************************phone menu not in 
cache") 
{{/groovy}} 


And i see in my log that, everytime, the System.out is executed, meaning the 
render cache is not used. What's my configuration problem? What did i miss? 

Note: using xwiki 4.1.2 and the url i try is 
http://server/xwiki/bin/view/MySpace/MyPage?menu=Test.Menu&xpage=plain 

Thank you. 

David Delbecq 

_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to