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

Transient Cache extension #210

Closed
billerickson opened this issue Jan 10, 2019 · 1 comment
Closed

Transient Cache extension #210

billerickson opened this issue Jan 10, 2019 · 1 comment

Comments

@billerickson
Copy link
Owner

Some users will build very complex queries involving multiple taxonomy and meta queries. These can be computationally expensive to run, and running the query on every uncached pageload is not necessary.

A transient cache extension would allow content editors to specify a transient key and expiration. Ex:

[display-posts transient_key="be_recent_posts" transient_expiration="DAY_IN_SECONDS"]

To implement this, we'll need to add an early output filter before Display Posts runs the query. The current output filter applies to individual posts in the listing. We need an output filter for the ENTIRE output of the shortcode.

@billerickson
Copy link
Owner Author

This extension has been built: Display Posts - Transient Cache

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