Informations générales

Add a static cache to your installation.

Configuration

You may add the following constants in your main config.php file:

  • DC_SC_CACHE_ENABLE : set to false to disable caching system (default false)
  • DC_SC_CACHE_DIR : full path to cache directory (default to dcstaticcache in your cache directory)
  • DC_SC_CACHE_BLOGS_ON : list of blogs ID that should be cached (empty or not defined -> all blogs will be cached)
  • DC_SC_CACHE_BLOGS_OFF : list of blogs ID that must not be cached (empty or not defined -> no blogs will not be cached)

Note: DC_SC_CACHE_BLOGS_OFF has higher priority than DC_SC_CACHE_BLOGS_ON

  • DC_SC_EXCLUDED_URL : list of URL types excluded from cache

Note: preview and pagespreview URL types are always excluded

Example:

define('DC_SC_CACHE_ENABLE',true);
define('DC_SC_CACHE_DIR','/tmp/dcstaticcache');
define('DC_SC_CACHE_BLOGS_ON','');
define('DC_SC_CACHE_BLOGS_OFF','secret,planet');
define('DC_SC_EXCLUDED_URL','sysinfo');

Hint

If you want cache to be called before any connection to database, add a require statement to _post_config.php at the end of your configuration file.

Informations techniques

  • Version du plugin : 0.9.1
  • Version minimale de Dotclear : 2.7
  • Licence : GNU GPL v2
  • Support : Billet dédié