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

Category pages not purging on post edit/trash #57

Closed
bamforp opened this issue Jan 4, 2014 · 2 comments
Closed

Category pages not purging on post edit/trash #57

bamforp opened this issue Jan 4, 2014 · 2 comments

Comments

@bamforp
Copy link

bamforp commented Jan 4, 2014

Hi - I have my posts organised around categories. QC Pro 131224 continues to serve category pages from cache even if I delete a post so users see dead links on the category page until it expires. I get a notification on Admin page that QC has detected changes when I add/delete/edit a post but the category pages are not being refreshed. Any advice?

I have set a short expiry as workaround but not ideal.

URL is nhap.org

@raamdev
Copy link
Contributor

raamdev commented Jan 4, 2014

@bamforp The way cache files are currently created, it's not trivial to find and clear only the cache files for category and tag pages. However, it certainly makes sense to me that deleting or saving a post would clear the category and tag pages, so I plan to work on this as part of the branched cache structure feature (#3), which will require modifying how cache files are stored and will be a good opportunity to make sure that category and tag page cache file can easily be cleared.

For now, I recommend the following:

Quick Cache Pro

You can use the URI Exclusion Patterns feature to exclude category and tag pages by adding the following to Dashboard → Quick Cache Pro → URI Exclusion Patterns:

/category/
/tag/

Quick Cache Lite

To prevent your Category and Tag pages from being cached, add the following to the top of your theme's category and tag templates (likely tag.php and category.php):

define('DONOTCACHEPAGE', TRUE);

You'll want to make sure this goes right after the first opening <?php tag that you find in those files, e.g., <?php define('DONOTCACHEPAGE', TRUE);)

@raamdev
Copy link
Contributor

raamdev commented Apr 25, 2014

This issue has been fixed by #117 and these changes will go out with the next release.

@raamdev raamdev closed this as completed Apr 25, 2014
@raamdev raamdev removed their assignment Apr 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants