summaryrefslogtreecommitdiff
path: root/lib/exe/js.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2006-11-12 15:34:40 +0100
committerAndreas Gohr <andi@splitbrain.org>2006-11-12 15:34:40 +0100
commit0df6f1508b6f966eb5ca98db664c92db22be06e1 (patch)
tree76670bc5a89dd5d104fd05a93a624d344b10621a /lib/exe/js.php
parent6b379cbf0a8e0d4f0e2dcb639808b944ac8afa66 (diff)
downloadrpg-0df6f1508b6f966eb5ca98db664c92db22be06e1.tar.gz
rpg-0df6f1508b6f966eb5ca98db664c92db22be06e1.tar.bz2
purge option support for js.php and css.php
adding ?purge darcs-hash:20061112143440-7ad00-436a63c8ee0279a9aa0423c389967418f8528656.gz
Diffstat (limited to 'lib/exe/js.php')
-rw-r--r--lib/exe/js.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/exe/js.php b/lib/exe/js.php
index 0bca72984..3ed69b476 100644
--- a/lib/exe/js.php
+++ b/lib/exe/js.php
@@ -165,6 +165,8 @@ function js_out(){
* @author Andreas Gohr <andi@splitbrain.org>
*/
function js_cacheok($cache,$files){
+ if($_REQUEST['purge']) return false; //support purge request
+
$ctime = @filemtime($cache);
if(!$ctime) return false; //There is no cache