Dokuwiki - Cache Dev configuration

1 - Cache

2 - Cache Structure

Cache.php structure:

2.1 - Instruction

In cache.php, set $_nocache to true

/**
 * Generic handling of caching
 */
class cache {
    public $key = '';          // primary identifier for this item
    public $ext = '';          // file ext for cache data, secondary identifier for this item
    public $cache = '';        // cache file name
    public $depends = array(); // array containing cache dependency information,
                               //   used by _useCache to determine cache validity
 
    var $_event = '';       // event to be triggered during useCache
    var $_time;
    var $_nocache = true;  // if set to true, cache will not be used or stored

2.2 - Rendering

Disable the whole render cache by setting the cache page time to -1.

See cache→_addDependencies in cache.php, instructions if ($conf['cachetime'] == -1)

2.3 - No cache

~~NOCACHE~~

disable only XHTML cache ?

2.4 - Purge

2.5 - Javascript

2.6 - Css

http://www.example.com/lib/exe/css.php?purge=true

Ctrl+F5 to suppress the browser cache because browsers cache stylesheets even when new versions are available.

2.7 - Image

Images caching

Local Server:

{{php.gif?nocache}}
{{php.gif?300x50&nocache}}

External Server with the cachetime config option

{{http://de3.php.net/images/php.gif?recache}}

2.8 - Configuration

Turn off “Compact CSS and JavaScript files” while developing a template

  • Bookmark "Dokuwiki - Cache Dev configuration" at del.icio.us
  • Bookmark "Dokuwiki - Cache Dev configuration" at Digg
  • Bookmark "Dokuwiki - Cache Dev configuration" at Ask
  • Bookmark "Dokuwiki - Cache Dev configuration" at Google
  • Bookmark "Dokuwiki - Cache Dev configuration" at StumbleUpon
  • Bookmark "Dokuwiki - Cache Dev configuration" at Technorati
  • Bookmark "Dokuwiki - Cache Dev configuration" at Live Bookmarks
  • Bookmark "Dokuwiki - Cache Dev configuration" at Yahoo! Myweb
  • Bookmark "Dokuwiki - Cache Dev configuration" at Facebook
  • Bookmark "Dokuwiki - Cache Dev configuration" at Yahoo! Bookmarks
  • Bookmark "Dokuwiki - Cache Dev configuration" at Twitter
  • Bookmark "Dokuwiki - Cache Dev configuration" at myAOL
dokuwiki/dev.txt · Last modified: 2015/12/05 22:00 by gerardnico