cross
New Foswiki release 2.1.6 is available with important security fixes.
Sourceforge foswiki email lists being discontinued. Subscribe to the new Foswiki announce and discuss lists at MailingLists
This question about Configuration: Answered

For pages which are not CACHEABLE some time consuming calls are made which severely reduce performance.

Hi,

I'm having problems with the page caching mechanism. For pages which are not CACHEABLE some time consuming calls are made which severely reduce performance. Please see the attacheed profile snapshot for the view script. As things are this means I can't upgrade to 1.1.5 because 1.0.9 gives much better performance for our users. I'm using DB_File with file caching. Any idea of tweaks I could make?

Thanks.

Best Wishes

Neil

  • profile info for non-cached paged:

  • view profile.png

I've changed the cache settings to:

$Foswiki::cfg{Cache}{Enabled} = 1;
$Foswiki::cfg{Cache}{WebDependencies} = 'WebRss, WebAtom, WebTopicList, WebIndex, WebSearch, WebSearchAdvanced ';
$Foswiki::cfg{Cache}{DependencyFilter} = '$Foswiki::cfg{SystemWebName}\\..* $Foswiki::cfg{TrashWebName}\\..* .*Template$ TWiki\\..*';
$Foswiki::cfg{CacheManager} = 'Foswiki::Cache::MemoryLRU';
$Foswiki::cfg{MetaCacheManager} = 'Foswiki::Cache::BDB';
$Foswiki::cfg{Cache}{RootDir} = '$Foswiki::cfg{WorkingDir}/tmp/cache';
$Foswiki::cfg{Cache}{DBFile} = '$Foswiki::cfg{WorkingDir}/tmp/foswiki_db';
$Foswiki::cfg{Cache}{NameSpace} = '$Foswiki::cfg{DefaultUrlHost}';
$Foswiki::cfg{Cache}{MaxSize} = '1000';
$Foswiki::cfg{Cache}{Servers} = '127.0.0.1:11211';
and this seems to be working better at the moment. I am currently running a script to recursively 'view' the whole site so will see what happens to the caches after all 50 000+ pages have been viewed. With the previous settings the page load slowed after lots ( > 10000 ) pages had been cached.

-- NeilMcKett - 03 Aug 2012

Are there any plans to fix the page cache in Foswiki 1.1.7?

Thanks

Neil

-- NeilMcKett - 05 Dec 2012

Unfortunately the page cache fixes are more extensive than should be made in a patch release. The Cache was completely redesigned / rewritten for Foswiki 1.2, and has been active on http://trunk.foswiki.org/Support/Question1149 for testing. It is showing good results there and will be released in Foswiki 1.2.0, which is expected to be the next release of Foswiki.

-- GeorgeClark - 06 Dec 2012

QuestionForm edit

Subject Configuration
Extension
Version Foswiki 1.1.5
Status Answered
Related Topics
Topic attachments
I Attachment Action Size Date Who Comment
view_profile.pngpng view_profile.png manage 51 K 03 Aug 2012 - 11:18 NeilMcKett profile info for non-cached paged
Topic revision: r4 - 06 Dec 2012, GeorgeClark - This page was cached on 22 Jun 2018 - 14:59.

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