-
Notifications
You must be signed in to change notification settings - Fork 235
Open
Labels
epics 🔥For large tasks or features, broken into smaller issues.For large tasks or features, broken into smaller issues.module: cacheneeds: product cleanuppriority: mediumIssues which are important, but no one will go out of business.Issues which are important, but no one will go out of business.severity: moderateFeature isn't working as expected but has work around to get same valueFeature isn't working as expected but has work around to get same valuetype: bugIndicates an unexpected problem or unintended behaviorIndicates an unexpected problem or unintended behavior
Description
Describe the bug
When there is a page that shares a slug with posts, whenever a purge of this page happens, we're clearing all posts too.
To Reproduce
Steps to reproduce the behavior:
- Create a page named Blog, with slug /blog
- Modify permalinks structure to display posts under /blog/%postname%' like this: https://jmp.sh/BcDMGIE
- add some posts and preload the cache.
- the posts should be cached inside the /blog folder, something like /blog/postname/index-https.html folders, and the blog page should be cached at /blog/index-https.html
- Edit the Blog page, or a sibling page.
- The whole /blog folder will be deleted, including all the posts that are sharing the parent folder.
Expected behavior
The posts that are created under a shared page slug folder, should not be deleted when editing the page.
Permalinks settings, including the same slug of one of the pages:

Resulting cache folder Structure:

Additional context
This purge can be triggered when editing the page itself, or by editing a sibling page since it will be included in the array by get_adjacent_post
It seems pretty similar to this issue: #2549
The additional content looks pretty close to this one.
Backlog Grooming (for WP Media dev team use only)
- Reproduce the problem
- Identify the root cause
- Scope a solution
- Estimate the effort
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
epics 🔥For large tasks or features, broken into smaller issues.For large tasks or features, broken into smaller issues.module: cacheneeds: product cleanuppriority: mediumIssues which are important, but no one will go out of business.Issues which are important, but no one will go out of business.severity: moderateFeature isn't working as expected but has work around to get same valueFeature isn't working as expected but has work around to get same valuetype: bugIndicates an unexpected problem or unintended behaviorIndicates an unexpected problem or unintended behavior
