Online Web Services

We Genuinely Believe In Your Success

How to exclude cache plugin caching sitemapxmls

5 online keyword density checker servcies

How to exclude cache plugin caching sitemap xmls

Here is the codes for main caching plugins,

Wp super cache

You can exclude XML Sitemap from caching with WP Super Cache easy
Go to Settings > WP Super Cache
Next go to Advanced tab.
Scroll all the way down says
“Add here strings (not a filename) that forces a page not to be cached” and enter the following string in the box:

[a-z0-9_\-]*sitemap[a-z0-9_\-]*\.(xml|xsl|html)(\.gz)?
([a-z0-9_\-]*?)sitemap([a-z0-9_\-]*)?\.xml

Wp total cache

If you are using above plugin for XML Sitemap for caching W3 Total Cache
Now go to Performance
Find “Page Cache”
Next scroll down says “Never cache the following pages”. Enter code below on that box,

[a-z0-9_\-]*sitemap[a-z0-9_\-]*\.(xml|xsl|html)(\.gz)?
([a-z0-9_\-]*?)sitemap([a-z0-9_\-]*)?\.xml

same code to if you have Database Caching at “Never cache the following pages” under Performance ,
also at Minification
Performance find Minify
add same code in the area available says “Never minify the following pages”.

also at last don’t forget,
Performance
Browser Cache
add same code in the 404 error exception list too.

Wp Rocket

ok one of best plugin paid, you can get clean XML Sitemap from caching
with WP Rocket
WP Rocket
Advanced Options
Down below find, says “Never cache the following pages”. add code,
at the box..
[a-z0-9_\-]*sitemap[a-z0-9_\-]*\.(xml|xsl|html)(\.gz)?
([a-z0-9_\-]*?)sitemap([a-z0-9_\-]*)?\.xml

once you done these adding make sure flush up your cache.
Hope this also help..it helped me 🙂 so i shared…

Opt In Image
Important Thing In Communication Is Hearing What Isn't Said..
We Send It To Your Inbox-We Want To Make It Easy For You.

 

 

Your Privacy 100% Secured, We Respect It.

Disclosure: Some links in this site are sponsor links, meaning, at no additional cost to you.We only recommend things that we use, value, and trust. We may receive compensation from our partners, Only if you make a purchase. All opinions are 100% our own.

Leave a reply

Your email address will not be published. Required fields are marked *