<?php
-
/**
- * @todo document
+ * Parser cache specific expiry check.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* @file
* @ingroup Parser
*/
+
+/**
+ * Parser cache specific expiry check.
+ *
+ * @ingroup Parser
+ */
class CacheTime {
var $mVersion = Parser::VERSION, # Compatibility check
$expire = min( $expire, $wgParserCacheExpireTime );
}
- if( $this->containsOldMagic() ) { //compatibility hack
+ if ( $this->containsOldMagic() ) { //compatibility hack
$expire = min( $expire, 3600 ); # 1 hour
}
* per-article cache invalidation timestamps, or if it comes from
* an incompatible older version.
*
- * @param $touched String: the affected article's last touched timestamp
+ * @param string $touched the affected article's last touched timestamp
* @return Boolean
*/
public function expired( $touched ) {
version_compare( $this->mVersion, Parser::VERSION, "lt" );
}
-}
\ No newline at end of file
+}