-
Notifications
You must be signed in to change notification settings - Fork 18
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
Option to automatically purge sitemap cache files #169
Comments
@raamdev Would you like me to work on this? |
@jaswsinc Yes, please. That would be great. Thank you! |
Assigning this to me. Thanks. |
@raamdev Will this be available in both lite/pro? |
@jaswsinc In LITE, this option should be Enabled and the sitemap ( In Pro, there should be an option to disable this feature and a way of specifying the name of the sitemap file. Do you know if it's common to have multiple sitemap files? If so, maybe Pro should be a multi-line text box where several sitemap URIs can be specified... Also, we need to consider Multisite installs. (Related: #201) |
Yes, it is common for there to be a single sitemap index file; but then several other sitemap files for each type of content; i.e. archives, posts, pages, custom post types, etc. In practice, most of these files will begin with |
Got it. Thanks. |
Referencing: #105 |
Got it, thanks. |
@raamdev Child blog caching is now supported in the dev branch following my work here in #169 Work has been completed in this PR and is ready to be merged in. The only remaining issue is actually related to a bug in the Google XML Sitemaps plugin. I'm still waiting on a response from the developer of that plugin; see #105 for further details.
|
@jaswsinc Awesome. Thanks! I see we're still awaiting a resolution for #105. Is this PR ready to be merged, or are we waiting on that? Also, regarding the XML Sitemap Patterns section of the UI: Would you mind adding a sentence in there that clarifies how one would specify a pattern for a path that includes sub-directories (e.g., Is |
Ah, I see now after re-reading it a few times that you specifically say the patterns should match "the cache file representation", so that means |
I think we can call that a separate issue at this point. It's definitely related to our work here, but Arnee wrote me back and says that he's going to fix that issue in the Google XML Sitemaps plugin soon. It's out of our hands now in my view. |
Right, the I was torn about how to deal with this. Maybe you can offer a suggestion about this. The cache file representation is where I'm a little stuck. That's how it's purged obviously, but that's more difficult to understand from the UI perspective. Now that I've thought about it a little more, I think this maybe should be redesigned to just accept a path which leads to the sitemap(s); i.e. instead of asking for the cache representation, we just ask them for the URI which leads to the sitemap(s); and allow them to use a wildcard to help cover many in one shot. What do you think? Same concept really, but we'll convert the URI into the proper format internally. |
I think there is another open issue related to the clearing of feeds. What we end up with here might also help us implement the feed purging too. Although, feeds are more standardized within WordPress. Still, it might be nice to offer a similar UI for auto-purging feeds. |
So, a URL? E.g., the site owner might specify something like this:
If so, then yes, I agree that's probably a little more clear. The site owner will likely know where his sitemap file is located anyway, since he'll probably have submitted the URL to a search engine for indexing. |
I was thinking that URIs would be more portable, but we can definitely support full URLs too. |
Either one works, as long as it's clear in the docs. :) |
I'm just looking at this again. I think URIs are better here. In a multisite environment we want the |
Hmmm. Yeah, that makes sense. Good catch! |
Perfect! Thank you. |
Closed by #217. |
Reopening this issue after @raamdev found a bug. A bot/crawler will look for a sitemap to live under the web address of |
Closed by PRs #224 wpsharks/comet-cache-pro#58. |
Quick Cache will cache sitemap files (e.g.,
/sitemap.xml
) generated by sitemap generation plugins, however the sitemap cache files never get purged when a new post is created or the sitemap changes in some way.There should be an option to automatically purge the sitemap cache files, with perhaps a way of specifying the name of the sitemap file whose cache should be purged (some plugins generate sitemap files with names other than
sitemap.xml
).Reported here: http://wordpress.org/support/topic/automatically-clear-the-cache-for-sitemaps?replies=1#post-5551760
The text was updated successfully, but these errors were encountered: