Re: [xwiki-devs] [xwiki-notifications] r10552 - xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/render
On Jun 21, 2008, at 5:55 AM, sdumitriu (SVN) wrote:
Author: sdumitriu Date: 2008-06-21 05:55:33 +0200 (Sat, 21 Jun 2008) New Revision: 10552
Modified: xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/ render/DefaultXWikiRenderingEngine.java Log: XWIKI-942: Customize default document cache duration Done. Use the key xwiki.rendering.defaultCacheDuration in xwiki.cfg to configure this. By default documents are not cached.
Modified: xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/ xwiki/render/DefaultXWikiRenderingEngine.java =================================================================== --- xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/ render/DefaultXWikiRenderingEngine.java 2008-06-21 03:49:16 UTC (rev 10551) +++ xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/ render/DefaultXWikiRenderingEngine.java 2008-06-21 03:55:33 UTC (rev 10552) @@ -235,7 +235,8 @@ MonitorPlugin monitor = Util.getMonitorPlugin(context); try { // We need to make sure we don't use the cache duretion currently in the system
This comment doesn't match the change below anymore. I would have updated it but I don't know why it was important that we don't use any cache duration and whether it has side effects now that we do...
- context.setCacheDuration(0); + context + .setCacheDuration((int) context .getWiki().ParamAsLong("xwiki.rendering.defaultCacheDuration", 0));
Thanks -Vincent
participants (1)
-
Vincent Massol