Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -169,8 +169,42 @@ 169 169 xwiki.store.cache.capacity=1000 170 170 {{/code}} 171 171 172 += Cache Macro = 173 + 174 +It's possible to perform selective content caching by using the [[Cache Macro>>extensions:Extensions.Cache Macro]]. 175 + 172 172 = Rendering cache = 173 173 178 +== When using XWiki Syntax 2.0 == 179 + 180 +Pages can be cached (ie their rendered content cached) to speed up displaying. The configuration is done in ##xwiki.properties## with the following configuration options: 181 + 182 +{{code language="none"}} 183 +#-# [Since 2.4M1] 184 +#-# Indicate if the rendering cache is enabled. 185 +#-# Default value is false. 186 +# core.renderingcache.enabled=true 187 + 188 +#-# [Since 2.4M1] 189 +#-# A list of Java regex patterns matching full documents reference. 190 +# core.renderingcache.documents=wiki:Space\.Page 191 +# core.renderingcache.documents=wiki:Space\..* 192 + 193 +#-# [Since 2.4M1] 194 +#-# The time (in seconds) after which data should be removed from the cache when not used. 195 +#-# Default value is 300 (5 min). 196 +# core.renderingcache.duration=300 197 + 198 +#-# [Since 2.4M1] 199 +#-# The size of the rendering cache. Not that it's not the number of cached documents but the number of cached results. 200 +#-# (For a single document several cache entries are created, because each action, language and request query string 201 +#-# produces a unique rendering result) 202 +#-# Default value is 100. 203 +# core.renderingcache.size=100 204 +{{/code}} 205 + 206 +== When using XWiki Syntax 1.0 == 207 + 174 174 Some pages are complex to render (they may aggregate outside data for example or do complex and slow queries). For these pages you can add the following to their content to cache them after they are rendered. Note that the document is refreshed whenever the content of the document changes, and the cache takes into account the URL, so it is pretty safe to add a long cache duration for all documents that don't contain scripts gathering data from the wiki. For example to cache the rendered content for 60 seconds you would add: 175 175 176 176 {{code language="none"}}