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

Add feature to ignore urls #37

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

erikdemarco
Copy link
Contributor

@erikdemarco erikdemarco commented Jul 31, 2021

We should give user to option to exclude some pages. For example some api page or secret page. All cache plugins should have this basic functionality.
Tested and works.

Note: all functions is copied from WP Cloudflare Super cache. So its already battle tested.

We should give user to option to exclude some pages. For example some api page or secret page. All cache plugins should have this basic functionality.
Tested and works.

Note all functions is copied from WP Cloudflare Super cache. So its already battle tested.
@soulseekah
Copy link
Contributor

Ignoring should be done via the $bail_callback setting where it should return true if the current environment should not be cached.
What you can do is write an example of ignoring by URL.

Also WPCS.

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

Successfully merging this pull request may close these issues.

2 participants