Changeset 929 for trunk/CacheAddOn/data/TWiki/CacheAddOn.txt
- Timestamp:
- 11/25/08 00:57:30 (4 years ago)
- File:
-
- 1 edited
-
trunk/CacheAddOn/data/TWiki/CacheAddOn.txt (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/CacheAddOn/data/TWiki/CacheAddOn.txt
r788 r929 1 1 %META:TOPICINFO{author="guest" date="1046815987" format="1.0" version="1.1"}% 2 2 The *CacheAddOn* implements a simple, 3 agressive server side caching strategy for TWiki pages.3 agressive server side caching strategy for Foswiki pages. 4 4 The speed-up is considerable. 5 5 … … 8 8 ---++ Rationale 9 9 10 While the functionality and flexibility of TWiki is all nice and useful,11 it comes at a high price: TWiki _is_ slow.10 While the functionality and flexibility of Foswiki is all nice and useful, 11 it comes at a high price: Foswiki _is_ slow. 12 12 Especially, if you make use of the form system 13 13 combined with dynamic searches, … … 19 19 [[http://www.sun.com/desktop/sunblade100/][SunBlade100]] 20 20 with few plug-ins installed 21 ( TWiki:Main.DefaultPlugin TWiki:Main.TablePlugin TWiki:Main.EditTablePlugin TWiki:Main.IncludeIndexPlugin TWiki:Main.InterwikiPlugin TWiki:Main.PdfPlugin TWiki:Main.SpacedWikiWordPlugin TWiki:Main.SpreadSheetPlugin TWiki:Main.TWikiDrawPlugin TWiki:Main.XpTrackerPlugin)21 (Foswiki:Extensions.DefaultPlugin Foswiki:Extensions.TablePlugin Foswiki:Extensions.EditTablePlugin Foswiki:Extensions.IncludeIndexPlugin Foswiki:Extensions.InterwikiPlugin Foswiki:Extensions.PdfPlugin Foswiki:Extensions.SpacedWikiWordPlugin Foswiki:Extensions.SpreadSheetPlugin Foswiki:Extensions.TWikiDrawPlugin Foswiki:Extensions.XpTrackerPlugin) 22 22 23 23 | Test case | Min[s]| Avg[s]| Max[s]| URL path | 24 24 | Hello-world = load+compile+init perl | 0.65| 0.75| 0.93| /twiki/benchmark?-h | 25 | Short page | 1.51| 2.03| 3.10| /twiki/render/ TWiki/BumpyWord |26 | Formatted search | 2.44| 2.58| 3.17| /twiki/render/ TWiki/ProjectContributor |27 | Large index w/much RCS | 5.36| 5.82| 7.46| /twiki/render/ TWiki/WebIndex |28 | Large page w/INCLUDEs | 6.91| 7.21| 8.37| /twiki/render/ TWiki/CompleteDocumentation |25 | Short page | 1.51| 2.03| 3.10| /twiki/render/System/BumpyWord | 26 | Formatted search | 2.44| 2.58| 3.17| /twiki/render/System/ProjectContributor | 27 | Large index w/much RCS | 5.36| 5.82| 7.46| /twiki/render/System/WebIndex | 28 | Large page w/INCLUDEs | 6.91| 7.21| 8.37| /twiki/render/System/CompleteDocumentation | 29 29 30 30 mod_perl could cut the fist figure, startup+compile overhead, to zero; 31 31 [[http://daemoninc.com/SpeedyCGI/][SpeedyCGI]] to almost zero. 32 32 If I understand correctly, 33 for TWiki you can only _subtract_ that gain of 0.65s from the other figures.34 4.7s instead of 5.3s for the TWiki documentation index -- no big deal.33 for Foswiki you can only _subtract_ that gain of 0.65s from the other figures. 34 4.7s instead of 5.3s for the Foswiki documentation index -- no big deal. 35 35 36 36 Given, that viewing is far more frequent than editing, … … 51 51 52 52 0 Wiki links, mostly to missing topics, may be out-dated; 53 0 TWiki search results are very likely to be out-dated53 0 Foswiki search results are very likely to be out-dated 54 54 0 Layout changes in templates are not reflected in cached pages 55 55 0 Decide for ultra fast, but clunky Unix only ksh/bash implementation … … 73 73 | Test case | Min[s]| Avg[s]| Max[s]| URL path | 74 74 | Hello-world = load+compile+init perl | 0.63| 0.68| 0.98| /twiki/benchmark?-h | 75 | Short page | 0.05| 0.06| 0.08| /twiki/view/ TWiki/BumpyWord |76 | Formatted search | 0.05| 0.06| 0.12| /twiki/view/ TWiki/ProjectContributor |77 | Large index w/much RCS | 0.05| 0.06| 0.07| /twiki/view/ TWiki/WebIndex |78 | Large page w/INCLUDEs | 0.05| 0.07| 0.10| /twiki/view/ TWiki/CompleteDocumentation |75 | Short page | 0.05| 0.06| 0.08| /twiki/view/System/BumpyWord | 76 | Formatted search | 0.05| 0.06| 0.12| /twiki/view/System/ProjectContributor | 77 | Large index w/much RCS | 0.05| 0.06| 0.07| /twiki/view/System/WebIndex | 78 | Large page w/INCLUDEs | 0.05| 0.07| 0.10| /twiki/view/System/CompleteDocumentation | 79 79 80 80 … … 87 87 0 It inserts a tee into the pipeline from the render script to the web server 88 88 0 The tee output is stored in the file system 89 0 Next time it's called, it compares the TWiki data file modification89 0 Next time it's called, it compares the Foswiki data file modification 90 90 time with that of the cached page 91 91 0 If up to date, pipe the cached page to the web server … … 114 114 | bin/fresh | shell force rendering a fresh page into the cache | shell | 115 115 | bin/edit.cache.diff | patch for edit script | optional for both | 116 | data/ TWiki/CachePlugin.txt | this description | both |116 | data/System/CachePlugin.txt | this description | both | 117 117 0 Create the the =/your/twiki/cache= directory, 118 118 make sure everything below is writable for the web server, e.g. <br> 119 119 =chgrp www /your/twiki/cache; chmod g+ws /your/twiki/cache= 120 120 0 Create one sub-directory per web which you want to cache, e.g.: 121 =/your/twiki/cache/ TWiki= for the documentation121 =/your/twiki/cache/Foswiki= for the documentation 122 122 0 To minimize misleading out-dated edit links, 123 123 modify the =/your/twiki/bin/edit= script with the supplied patch;
Note: See TracChangeset
for help on using the changeset viewer.
