silverstrap 

silverstrap Commit Details

Date:2013-10-15 15:24:23 (7 years 1 month ago)
Author:Nicola Fontana
Branch:bootstrap2, dev, master, master-1.0, ss3
Commit:7332d4363585db39210c9d7d5772c1a035835a56
Parents: 135ec4e79cbd530bff3c1054463d96250e5c20dd
Message:Cache the sitemap

Use SilverStripe partial caching to boost performances on sites where
generating the sitemap is costly (such as on http://gtkdoc.entidi.com/).

These are the peformance results on the local aforementioned website:

ab -n100 -c 10 http://gtkdoc.entidi.com.local/

Time Request per seconds
uncached 8.965 11.15
cached 3.934 25.42
Changes:
Mtemplates/Includes/Sitemap.ss (2 diffs)

File differences

templates/Includes/Sitemap.ss
1
12
23
34
......
1314
1415
1516
17
<% cached 'sitemap', List(Page).max(LastEdited) %>
<div class="well well-large">
<div class="container">
<div class="row">
</div>
</div>
</div>
<% end_cached %>

Archive Download the corresponding diff file