disableCache function
authorTim Starling <tstarling@users.mediawiki.org>
Sun, 7 Aug 2005 12:09:46 +0000 (12:09 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Sun, 7 Aug 2005 12:09:46 +0000 (12:09 +0000)
includes/Parser.php

index 9d1ca27..65b7131 100644 (file)
@@ -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;
+       }
 }
 
 /**