[dokuwiki] Re: Purge CSS and JS cache

  • From: "Oliver Schulze L." <oliver@xxxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Wed, 19 Jul 2006 14:43:10 -0400

You can do a touch in the conf/local.php to trigger a css and js cache update.

HTH
Oliver

Gabriel Birke wrote:
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


-- Oliver Schulze L. <oliver@xxxxxxxxxxxxx>

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

Other related posts: