X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fconfig%2FEtcdConfig.php;h=f3d38494764529a8a189e1257b831d71ef88d676;hb=cfd56e52d96e7c65215a4d9d2f10962794c67f88;hp=09d0189a9401e3f5828f3c23ffc889b6a3d69842;hpb=c7b0bb2459a6b14590b252935eccc2edfccae13b;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/config/EtcdConfig.php b/includes/config/EtcdConfig.php index 09d0189a94..f3d3849476 100644 --- a/includes/config/EtcdConfig.php +++ b/includes/config/EtcdConfig.php @@ -161,6 +161,7 @@ class EtcdConfig implements Config, LoggerAwareInterface { if ( is_array( $etcdResponse['config'] ) ) { // Avoid having all servers expire cache keys at the same time $expiry = microtime( true ) + $this->baseCacheTTL; + // @phan-suppress-next-line PhanTypeMismatchArgumentInternal $expiry += mt_rand( 0, 1e6 ) / 1e6 * $this->skewCacheTTL; $data = [ 'config' => $etcdResponse['config'],