From: Aaron Schulz Date: Tue, 29 Sep 2015 08:22:02 +0000 (-0700) Subject: Actually declare the base LoadMonior::clearCaches X-Git-Tag: 1.31.0-rc.0~9664^2 X-Git-Url: http://git.cyclocoop.org/%22%22._DIR_PLUGIN_FULLCALENDAR.%22prive/themes/spip/images/event_edit.png/Foo?a=commitdiff_plain;h=8c84af70b656678dea7845eee6acbfe7ced6d6f9;p=lhc%2Fweb%2Fwiklou.git Actually declare the base LoadMonior::clearCaches This fixes IDEA errors in LoadBalancer::clearLagTimeCache Change-Id: Ibd863ef6bc670a29f65821e3f3cd9d721a652b9a --- diff --git a/includes/db/loadbalancer/LoadMonitor.php b/includes/db/loadbalancer/LoadMonitor.php index 4975ea19dd..03ce787dd2 100644 --- a/includes/db/loadbalancer/LoadMonitor.php +++ b/includes/db/loadbalancer/LoadMonitor.php @@ -51,6 +51,12 @@ interface LoadMonitor { * @return array Map of (server index => seconds) */ public function getLagTimes( $serverIndexes, $wiki ); + + /** + * Clear any process and persistent cache of lag times + * @since 1.26 + */ + public function clearCaches(); } class LoadMonitorNull implements LoadMonitor { @@ -63,4 +69,8 @@ class LoadMonitorNull implements LoadMonitor { public function getLagTimes( $serverIndexes, $wiki ) { return array_fill_keys( $serverIndexes, 0 ); } + + public function clearCaches() { + + } }