Jump to content

clear cache for all children


bernhard
 Share

Recommended Posts

Current options

post-2137-0-68546400-1422981278_thumb.pn

For a new project going online very soon i would need an option "clear cache for the saved page and its children". should not be that complicated to implement? i'm wondering why this is not already built in - didn't this need come up before? :)

use-case:

i have a catalog-like site structure. for every page i have a point of contact (POC) to choose. if nothing is chosen, it will show the POC of the parent page (recursively). that way i can define POCs for whole sections at once - with the only problem that when caching is turned ON and the client changes the POC of one category the POC will still remain on the cached children :(

maybe anyone can point me to the right direction for hooking or forking this request on github?

thanks

Link to comment
Share on other sites

  • 1 month later...

great news!

this feature is now in the core - and you can guess, ryans solution is far better than my initial module :)https://processwire.com/blog/posts/processwire-core-updates-pull-requests-and-more-2.5.25/#clear-page-cache-by-matching-pages-with-custom-selector

again a great example of how processwire evolves from the needs of every single user. thank you teppo for taking this further!

edit:

post-2137-0-73429400-1428575055_thumb.pn

how would i set the "has_parent" id to page id of the page that is being saved?

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...