Skip to content

Commit

Permalink
Item8706: Adding more spec and setting a default for cache
Browse files Browse the repository at this point in the history
that works out-of-the-box with the CPAN libs added earlier.
There will be more improvements of the configure docu for cache


git-svn-id: http://svn.foswiki.org/trunk@6872 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
KennethLavrsen authored and KennethLavrsen committed Mar 23, 2010
1 parent deb27a1 commit f0f6d9d
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions core/lib/Foswiki.spec
Expand Up @@ -1042,22 +1042,31 @@ $Foswiki::cfg{Cache}{DependencyFilter} = '$Foswiki::cfg{SystemWebName}\..*|$Fosw
# chose a different backend for their own purposes. Some recommendations:
# <ul>
# <li>Use <code>Foswiki::Cache::FileCache</code> for long term
# caching. Cached pages will be stored on disk.</li>
# caching. Cached pages will be stored on disk. This is the default cache type.
# The required CPAN lib Cache::Cache is distributed with Foswiki so it works
# "out-of-the-box"</li>
# <li>Use <code>Foswiki::Cache::BDB</code> for Berkeley Data Base type cache.
# This is the recommended cache type but it requires additional CPAN lib
# BerkeleyDB to be installed.</li>
# <li>Use <code>Foswiki::Cache::Memcached</code> for distributed caching
# on high end sites</li>
# <li>Use <code>Foswiki::Cache::MemoryLRU</code> for an in-memory LRU cache.
# Note that this CacheManager will only keep pages during one call or for
# the time of a perl persistent backend.</li>
# </ul>
$Foswiki::cfg{CacheManager} = 'Foswiki::Cache::BDB';
$Foswiki::cfg{CacheManager} = 'Foswiki::Cache::FileCache';
# **SELECT Foswiki::Cache::DB_File,Foswiki::Cache::BDB EXPERT**
# Select the database backend use to store meta data for the page cache.
# This may be set to a different CacheManager than the one chosen above. While the
# cached pages might be displaced in an LRU (least recently used) page cache,
# meta data about page dependencies shall be stored reliably. That's why
# only DB_File and BDB are selectable.
$Foswiki::cfg{MetaCacheManager} = 'Foswiki::Cache::BDB';
# <code>Foswiki::Cache::DB_File</code> uses plain files to store the
# cache. This is default and works "out-of-the-box".
# <code>Foswiki::Cache::BDB</code> is Berkeley Data Base. This is the
# recommended cache type. It requires additional CPAN lib BerkeleyDB to be
# installed.
# While the cached pages might be displaced in an LRU (least recently used) page
# cache, meta data about page dependencies shall be stored reliably. That's why
# only DB_File and BDB are selectable for meta data cache.
$Foswiki::cfg{MetaCacheManager} = 'Foswiki::Cache::DB_File';
# **BOOLEAN EXPERT**
# Enable gzip/deflate page compression. Modern browsers can uncompress content
Expand Down

0 comments on commit f0f6d9d

Please sign in to comment.