pantheon-systems/pantheon-advanced-page-cache

All posts in same category should not be purged when one of the posts is updated

ari-gold opened this issue · 5 comments

Steps to reproduce

  1. Create two posts
  2. Update one of the posts

Expected
Post updated should be purged

Actual
Both posts are purged

$ curl -I http://dev-pantheon-integrated-cdn.pantheonsite.io/2016/11/03/post-1 --silent | grep Age
Age: 47
 $ curl -I http://dev-pantheon-integrated-cdn.pantheonsite.io/2016/11/03/post-2 --silent | grep Age
Age: 33
 $ curl -I http://dev-pantheon-integrated-cdn.pantheonsite.io/ --silent | grep Age
Age: 51
$ # UPDATE POST 2
$ curl -I http://dev-pantheon-integrated-cdn.pantheonsite.io/ --silent | grep Age
Age: 0
 $ curl -I http://dev-pantheon-integrated-cdn.pantheonsite.io/2016/11/03/post-2 --silent | grep Age
Age: 0
$ curl -I http://dev-pantheon-integrated-cdn.pantheonsite.io/2016/11/03/post-1 --silent | grep Age
Age: 0

Thanks for the report, @ari-gold. To begin with, I've added explicit assertions of affected URIs which each of our purge events occurs.

@ari-gold The fix is now on the dev environment.

We discovered this still happens when both posts are in the same category, e.g. Uncategorized.

We discovered this still happens when both posts are in the same category, e.g. Uncategorized.

@ari-gold I've uploaded the latest version to the testing environment, with a fix for this issue.

Confirmed fixed. Thanks @danielbachhuber !