Ticket #62111: 62111-embed-cache-fix.patch
| File 62111-embed-cache-fix.patch, 541 bytes (added by , 4 months ago) |
|---|
-
src/wp-includes/class-wp-embed.php
diff --git a/src/wp-includes/class-wp-embed.php b/src/wp-includes/class-wp-embed.php index 7519b0bf77..97f43c56f6 100644
a b class WP_Embed { 269 269 270 270 $cached_recently = ( time() - $cache_time ) < $ttl; 271 271 272 if ( $this->usecache ||$cached_recently ) {272 if ( $this->usecache && $cached_recently ) { 273 273 // Failures are cached. Serve one if we're using the cache. 274 274 if ( '{{unknown}}' === $cache ) { 275 275 return $this->maybe_make_link( $url );