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

Feature Request: Button and/or method to clear the Home Page cache #519

Closed
anthonyeden opened this issue Jul 7, 2015 · 5 comments
Closed

Comments

@anthonyeden
Copy link

Hi,

I want a way to clear the homepage cache from an externally accessible function? I'd love to clear the homepage cache whenever settings on our own custom admin screen are changed.

I can't see a way to do this via your exposed functions. Any clues?

Thanks,
Anthony Eden.

@raamdev
Copy link
Contributor

raamdev commented Jul 8, 2015

@anthonyeden This is not currently possible, however I'll accept this as a feature request.

Note that while it's not currently possible to clear only the home page cache, you can clear the cache dynamically in many other ways:

Also, note that it's also possible to exclude the home page from being cached altogether.


Related: #191

@raamdev raamdev changed the title Clear Homepage Cache Function? Feature Request: Button and/or method to clear the Home Page cache Jul 8, 2015
@raamdev
Copy link
Contributor

raamdev commented Oct 24, 2015

@jaswsinc Now that #191 has been closed and we have a new API function (#590) to clear specific URLs, is it possible to clear the home page cache via zencache::clearUrl($url);?

@jaswrks
Copy link

jaswrks commented Oct 25, 2015

Yep. Definitely possible to do that now with the new API function.

@raamdev
Copy link
Contributor

raamdev commented Oct 27, 2015

@anthonyeden With the next release of ZenCache Pro it will be possible to clear the Home Page cache via zencache::clearUrl() by passing in a new watered-down regex syntax.

Regarding making a "button" for this (to clear the Home Page cache): I'm closing this issue in favor of #380. When #380 is closed, it should be possible to visit the home page as an admin and simply click a new "Clear Current Page" button (to be worked on as part of #380).

@raamdev
Copy link
Contributor

raamdev commented Nov 1, 2015

@anthonyeden A new feature added in #596 (comment) that will be released with the next version of ZenCache Pro closes this issue. There's now a Clear Cache sub-menu in the Admin Bar that allows clearing the cache for the Home Page:

2015-10-31_21-01-56

@raamdev raamdev added this to the Next Release (Pro) milestone Nov 1, 2015
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

3 participants