From b14b1f132c83ef83f89018e83614c00bfb8b3568 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Sun, 7 Aug 2005 12:09:46 +0000 Subject: [PATCH] disableCache function --- includes/Parser.php | 8 ++++++++ 1 file changed, 8 insertions(+) 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; + } } /** -- 2.20.1