Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce the cache times for capability checks #59

Open
stevegrunwell opened this issue Apr 19, 2019 · 0 comments
Open

Reduce the cache times for capability checks #59

stevegrunwell opened this issue Apr 19, 2019 · 0 comments
Assignees

Comments

@stevegrunwell
Copy link
Contributor

Currently, capability checks against the API (e.g. "is this domain permitted to embed media on the front-end via shortcode?") are cached for 12 hours. That's not normally a huge deal except when a subscriber wants to enable a domain capability but then either has to flush the cache or wait up to 12 hours to get access to the capability.

Since the capability check is only run when attempting to render the shortcode, a much shorter cache time (1min or so) should be used — long enough to keep the API happy but short enough that the shortcode would start working almost instantly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant