X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fcache%2FCacheDependency.php;h=4ff10047a4a7637e5568769f915d93041857f92a;hb=39f0f919c5708f4c672a8eb7e0891f50bf16883e;hp=a59ba97d0a007311e1ba5872265e6ba3f422fb2d;hpb=c9bef3d160724e84b9c876615cceddffadef73bc;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/cache/CacheDependency.php b/includes/cache/CacheDependency.php index a59ba97d0a..4ff10047a4 100644 --- a/includes/cache/CacheDependency.php +++ b/includes/cache/CacheDependency.php @@ -34,7 +34,6 @@ class DependencyWrapper { private $deps; /** - * Create an instance. * @param mixed $value The user-supplied value * @param CacheDependency|CacheDependency[] $deps A dependency or dependency * array. All dependencies must be objects implementing CacheDependency. @@ -99,7 +98,7 @@ class DependencyWrapper { * it will be generated with the callback function (if present), and the newly * calculated value will be stored to the cache in a wrapper. * - * @param BagOStuff $cache A cache object + * @param BagOStuff $cache * @param string $key The cache key * @param int $expiry The expiry timestamp or interval in seconds * @param bool|callable $callback The callback for generating the value, or false @@ -182,11 +181,11 @@ class FileDependency extends CacheDependency { function loadDependencyValues() { if ( is_null( $this->timestamp ) ) { - MediaWiki\suppressWarnings(); + Wikimedia\suppressWarnings(); # Dependency on a non-existent file stores "false" # This is a valid concept! $this->timestamp = filemtime( $this->filename ); - MediaWiki\restoreWarnings(); + Wikimedia\restoreWarnings(); } } @@ -194,9 +193,9 @@ class FileDependency extends CacheDependency { * @return bool */ function isExpired() { - MediaWiki\suppressWarnings(); + Wikimedia\suppressWarnings(); $lastmod = filemtime( $this->filename ); - MediaWiki\restoreWarnings(); + Wikimedia\restoreWarnings(); if ( $lastmod === false ) { if ( $this->timestamp === false ) { # Still nonexistent