Hello @lyk-1
Thank you for your question and I am happy to answer.
If you want to avoid feeds being cached, you simply need to make sure that the option “Cache feeds: site, categories, tags, comments” is disabled in the Performance>Page Cache General section, save all settings and purge the cache.
If you also want to exclude the entire page from being cached, you simply need to add the page, for example, /feed-page/ in Performance>Page Cache>Advanced>Never cache the following pages: field.
I hope this helps!
Thanks!
Thread Starter
Lyk
(@lyk-1)
Hello @vmarko,
Thank you for your reply.
I have the “Cache feeds” option disabled. But I guess this is for the default wordpress feeds and not for custom feed created by plugins in various folders. Correct?
The feeds exist under https://DOMAIN/wp-content/uploads/woo-product-feed-pro/xml/some_alphanumeric_id.xml
Will excluding /wp-content/uploads/woo-product-feed-pro/.* be enough?
Or should I use something like /wp-content/uploads/woo-product-feed-pro/xml/.* or just with * instead of .*, i.e./wp-content/uploads/woo-product-feed-pro/xml/*
Thank you again!
-
This reply was modified 3 years, 11 months ago by
Lyk.
-
This reply was modified 3 years, 11 months ago by
Lyk.
Hello @lyk-1
Thank you for yoru feedback.
The option “Cache feeds: site, categories, tags, comments” once disabled should not cache feeds or any .XML files.
Can you please share if you are experiencing issues with Page Caching enabled?
When excluding Pages from the cache, you cannot add the path of the files.
Can you share what are the exact issues you are experiencing?
Thanks!
Thread Starter
Lyk
(@lyk-1)
Hello again,
So if I understood correctly, disabling the option “cache feeds: […]” will automatically exclude any .xml files within the website, regardless of their origin or file location.
I occasionally have issues with the feed not showing new products and clearing the W3 caches seems to show the correct/updated feed. Thus, I am trying to find out if it’s a caching issue or something different.
Next time the issue appears, I will check the .xml file directly through the server filesystem. If the issue is related to caching, then the xml file should be updated but the browser will still show the old file because of page caching. Right?
Thank you again!
-
This reply was modified 3 years, 11 months ago by
Lyk.
Hello @lyk-1
Thank for yoru feedback.
Yes, you are correct. What may also happen is Browser Caching. In Performance>Browser Cache the default value for expires header/cache-control is 3600s so the file may be cached in the browser.
You are most welcome and thanks!
Thread Starter
Lyk
(@lyk-1)
I currently have browser caching disabled so this should not be the case.
I will investigate further taking into account the info you gave me and will reopen a thread if the issue persists.
Once again, thank you for your reply!