@@ 162-170 (lines=9) @@ | ||
159 | $touched |
|
160 | ), |
|
161 | $this->repo->descriptionCacheExpiry ?: $cache::TTL_UNCACHEABLE, |
|
162 | function ( $oldValue, &$ttl, array &$setOpts ) use ( $renderUrl ) { |
|
163 | wfDebug( "Fetching shared description from $renderUrl\n" ); |
|
164 | $res = Http::get( $renderUrl, [], __METHOD__ ); |
|
165 | if ( !$res ) { |
|
166 | $ttl = WANObjectCache::TTL_UNCACHEABLE; |
|
167 | } |
|
168 | ||
169 | return $res; |
|
170 | } |
|
171 | ); |
|
172 | } |
|
173 |
@@ 2058-2066 (lines=9) @@ | ||
2055 | return $cache->getWithSetCallback( |
|
2056 | $key, |
|
2057 | $this->repo->descriptionCacheExpiry ?: $cache::TTL_UNCACHEABLE, |
|
2058 | function ( $oldValue, &$ttl, array &$setOpts ) use ( $renderUrl ) { |
|
2059 | wfDebug( "Fetching shared description from $renderUrl\n" ); |
|
2060 | $res = Http::get( $renderUrl, [], __METHOD__ ); |
|
2061 | if ( !$res ) { |
|
2062 | $ttl = WANObjectCache::TTL_UNCACHEABLE; |
|
2063 | } |
|
2064 | ||
2065 | return $res; |
|
2066 | } |
|
2067 | ); |
|
2068 | } |
|
2069 |