<?php
/**
- * Contain the HTMLFileCache class
+ * Contain the FileCacheBase class
* @file
* @ingroup Cache
*/
return $text;
}
- /*
+ /**
* Clear the cache for this page
* @return void
*/
wfRestoreWarnings();
}
- /*
+ /**
* Create parent directors of $this->cachePath()
* @TODO: why call wfMkdirParents() twice?
* @return void
wfMkdirParents( $mydir2, null, __METHOD__ );
}
- /*
+ /**
* Return relative multi-level hash subdirectory with the trailing
* slash or the empty string if $wgFileCacheDepth is off
* @return string
* @ingroup Cache
*/
class HTMLFileCache extends FileCacheBase {
-
+ /**
+ * Construct an ObjectFileCache from a Title and an action
+ * @param $title Title
+ * @param $action string
+ * @return HTMLFileCache
+ */
public static function newFromTitle( Title $title, $action ) {
$cache = new self();
return $cache;
}
- /*
+ /**
* Cacheable actions
* @return array
*/
<?php
+/**
+ * Contain the ObjectFileCache class
+ * @file
+ * @ingroup Cache
+ */
class ObjectFileCache extends FileCacheBase {
-
+ /**
+ * Construct an ObjectFileCache from a key and a type
+ * @param $key string
+ * @param $type string
+ * @return ObjectFileCache
+ */
public static function newFromKey( $key, $type ) {
$cache = new self();
return $cache;
}
- /*
+ /**
* Get the type => extension mapping
* @return array
*/