[dokuwiki] Purge CSS and JS cache

  • From: "Gabriel Birke" <gabriel.birke@xxxxxxxxx>
  • To: <dokuwiki@xxxxxxxxxxxxx>
  • Date: Tue, 18 Jul 2006 09:47:18 +0200

Hello!

While developing a template for our intranet knowledge base I needed to
change the css files very often. So I implemented a "purge" option for
css cache files:

I added to following two lines to the function css_cacheok (line 112) in
lib/exe/css.php:

if(!empty($_REQUEST['purge']))
        return false; 

Maybe they can be incorporated in future releases.

The same two lines can be inserted at the start of js_cacheok (line 149)
in lin/exe/js.php to get the purge functionality for JS files (very
useful if you are developing plugins that use JS)

Greetings

Gabriel

-- 
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: