<?php
+/**
+ * Contain the CacheManager class
+ * @package MediaWiki
+ */
-# Handles talking to the file cache, putting stuff in and taking it back out.
-# Mostly called from Article.php, also from DatabaseFunctions.php for the
-# emergency abort/fallback to cache.
-
-# Global options that affect this module:
-# $wgCachePages
-# $wgCacheEpoch
-# $wgUseFileCache
-# $wgFileCacheDirectory
-# $wgUseGzip
-
+/**
+ * We need the title class
+ */
require_once( 'Title.php' );
+/**
+ * Handles talking to the file cache, putting stuff in and taking it back out.
+ * Mostly called from Article.php, also from DatabaseFunctions.php for the
+ * emergency abort/fallback to cache.
+ *
+ * Global options that affect this module:
+ * $wgCachePages
+ * $wgCacheEpoch
+ * $wgUseFileCache
+ * $wgFileCacheDirectory
+ * $wgUseGzip
+ * @package MediaWiki
+ */
class CacheManager {
var $mTitle, $mFileCache;
if(!file_exists($mydir2)) { mkdir($mydir2,0775); }
}
- function saveToFileCache( $text ) {
+ function saveToFileCache( $origtext ) {
+ $text = $origtext;
if(strcmp($text,'') == 0) return '';
wfDebug(" saveToFileCache()\n", false);