Item10453: Improve performance of the Foswiki Page Cache.
Current State: Closed
Released In: 2.0.0
Target Release: major
I recently tried to enable the built-in cache in 1.1.2
I enabled it in configure using the default settings for it.
And then I disabled it again in SitePreferences with Set CACHEABLE = off
And then finally I enabled it in selected topics where I had some monster searches that I wanted cached by setting Set CACHEABLE = on
It works as such BUT
The entite site slowed down. Plain topics that do not need any caching slowed down from 0.5 seconds to more than a second and it got worse with time.
I found out that even though the Set CACHEABLE = off is defined globally, the cache code continues to cache all topics. It does not use the cache to display the pages so the pages are not out of date or anything. But the continuous updating of the cache slows down the execusion of the code for no good reason.
We need to change the cache code so it only saves cache files of cache database content for the topics for which the cache is enabled.
In my case the cache worked great for the topics I wanted cached. The monster searches ran much faster. But the general slow down of all other pages was not acceptable so I had to disable the cache again.
- 08 Mar 2011
has been rewritten from scratch in 1.2.0 to address this. See Item11549
- 21 Nov 2012