Skip to content
Discussion options

You must be logged in to vote

Thank you so much, @earthlingdavey! This is exactly the kind of situation where one of MilliCache's main features shines: Rules.

It wouldn't make sense to bake a fix into MilliCache itself as that would purge every user's parent pages regardless of whether they actually mention the parent title (e.g. in a breadcrumb). In your case it's easy to solve with a custom rule.

Add the ancestor post: flag to children

The child depends on the parent, so the dependency belongs on the child's cache entry, declared only when the crumb is actually rendered. That's exactly the condition → action shape rules give you:

  • Condition = "does this page render breadcrumbs?"
  • Action = "tag it with its ancestors' p…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@earthlingdavey
Comment options

Comment options

You must be logged in to vote
1 reply
@earthlingdavey
Comment options

Answer selected by earthlingdavey
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants