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

Post Permalink Changes are not Clearing the Cache File for the Old Permalink #359

Closed
sarangandk opened this issue Oct 24, 2014 · 4 comments
Labels
Milestone

Comments

@sarangandk
Copy link

I found a bug in Quick Cache latest version. When I change permalink for a post and visit the old permalink, that old permalink and the new permalink works and duplicate content. It should delete the old cache and automatically redirect to new permalink without Quick Cache plugin.

To reproduce the error, try the following:
1.) Create a post in WordPress with some random content and publish.
2.) Let's say the permalink for the newly post is http://domain.tld/hello-world.html
3.) Log out from WordPress admin panel and visit http://domain.tld/hello-world.html to get the post cached.
4.) Now login again in WordPress admin panel, edit the post at http://domain.tld/hello-world.html and change the permalink to http://domain.tld/hi-world.html, save the post.
5.) Now logout from admin panel.
6.) Visit http://domain.tld/hello-world.html & http://domain.tld/hi-world.html
7.) Both page will load fine = Duplicate content.

What should have happened is, the cache for the old permalink should have been cleared.

@raamdev
Copy link
Contributor

raamdev commented Oct 24, 2014

@sarangandk Thank you very much for the bug report and the detailed steps to recreate this! I have confirmed the bug. It looks like Quick Cache isn't properly detecting when the permalink changes.

I'll label this as a bug and add it to the todo list. Thanks!

@raamdev raamdev added the bug label Oct 24, 2014
@raamdev raamdev added this to the Future Release milestone Oct 24, 2014
@raamdev raamdev changed the title Redirect cache is not clearingwhen changing permalink for posts Post Permalink Changes are not Clearing the Cache File for the Old Permalink Oct 24, 2014
@raamdev raamdev modified the milestones: Next Release, Future Release Nov 27, 2014
@raamdev raamdev modified the milestones: Next Release, Future Release Dec 27, 2014
@raamdev raamdev modified the milestones: Next Release, Future Release Jan 21, 2015
@raamdev raamdev modified the milestones: Next Release, Future Release Mar 13, 2015
@raamdev
Copy link
Contributor

raamdev commented Mar 28, 2015

This bug was fixed as part of the work on #441.

@raamdev
Copy link
Contributor

raamdev commented Mar 28, 2015

Next release changelog:

  • Bug Fix: Fixed a bug where changing the permalink for a published post would result in the cache file for the old permalink being left behind and as a result both the old and the new permalink would be accessible, instead of WordPress redirecting the old permalink to the new one. This has been fixed and ZenCache now properly cleared the old cache file when changing the permalink on a published post. Issue #359.

@raamdev
Copy link
Contributor

raamdev commented Apr 10, 2015

This fix has been released with ZenCache v150409:
http://zencache.com/zencache-v150409-now-available/

If you need to follow-up with something related to this GitHub Issue, please open a new GitHub Issue.

@wpsharks wpsharks locked and limited conversation to collaborators Apr 10, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants