From: Tim Starling Date: Sun, 7 Aug 2005 12:09:46 +0000 (+0000) Subject: disableCache function X-Git-Tag: 1.6.0~2051 X-Git-Url: http://git.cyclocoop.org/url?a=commitdiff_plain;h=b14b1f132c83ef83f89018e83614c00bfb8b3568;p=lhc%2Fweb%2Fwiklou.git disableCache function --- diff --git a/includes/Parser.php b/includes/Parser.php index 9d1ca27b00..65b71313aa 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -3298,6 +3298,14 @@ class Parser $sk =& $this->mOptions->getSkin(); return $sk->makeImageLinkObj( $nt, $caption, $alt, $align, $width, $height, $framed, $thumb, $manual_thumb ); } + + /** + * Set a flag in the output object indicating that the content is dynamic and + * shouldn't be cached. + */ + function disableCache() { + $this->mOutput->mCacheTime = -1; + } } /**