fb-instant-articles icon indicating copy to clipboard operation
fb-instant-articles copied to clipboard

Reduce plugin's cache burden, remote requests

Open ethitter opened this issue 3 years ago • 0 comments

Cached or not, the result of the remote request is only used to determine if instant_articles_embed_get_html() should be called, which itself returns early when called outside of the transformation process. If a post is never published to Instant Articles, neither the remote request nor its cached result are necessary; due to the filter this is hooked to, it will be called regardless.

On a high-traffic site, or a site without a persistent object cache and limited MySQL resources, rendering a post that contains many embeds can exhaust resources or eject from cache data that is of greater benefit to remain in cache.

Follows #775

Relates to #252, #1067, #901

ethitter avatar Apr 24 '21 00:04 ethitter