You are here: Foswiki>Tasks Web>Item10453 (06 Nov 2018, MichaelDaum)Edit Attach

Item10453: Improve performance of the Foswiki Page Cache.

pencil
Priority: Enhancement
Current State: Closed
Released In: 2.0.0
Target Release: major
Applies To: Engine
Component: PageCache
Branches:
Reported By: KennethLavrsen
Waiting For:
Last Change By: MichaelDaum
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.

-- KennethLavrsen - 08 Mar 2011

The PageCache has been rewritten from scratch in 1.2.0 to address this. See Item11549.

-- MichaelDaum - 21 Nov 2012
 

ItemTemplate edit

Summary Improve performance of the Foswiki Page Cache.
ReportedBy KennethLavrsen
Codebase trunk
SVN Range
AppliesTo Engine
Component PageCache
Priority Enhancement
CurrentState Closed
WaitingFor
Checkins
TargetRelease major
ReleasedIn 2.0.0
CheckinsOnBranches
trunkCheckins
masterCheckins
ItemBranchCheckins
Release01x01Checkins
Topic revision: r8 - 06 Nov 2018, MichaelDaum
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy