Skip to content

Filter: apple_news_post_status_cache_expiration

kevinfodness edited this page Oct 23, 2020 · 1 revision

apply_filters( 'apple_news_post_status_cache_expiration', int $expiration, string $state )

Filters the cache lifetime for API responses.

Parameters

$expiration

(int) The current cache lifetime.

$state

(string) The current Apple News API status for the post.

More Information

Most responses are cached to avoid repeatedly hitting the API, which would slow down your admin dashboard. Different statuses are cached for different times since some are more likely to change quickly than others.

Source

admin/class-admin-apple-news.php

Clone this wiki locally