Wait for Arnee’s answer. But, I have added this in W3TC under
Never cache the following pages:
sitemap\.xml
sitemap-.*\.xml
sitemap\.html
sitemap-.*\.html
See here:
http://wordpress.org/support/topic/general-http-error-404-not-found-http-error-404-405?replies=5
Thread Starter
Amin
(@hooramin)
thanks for your reply
I did your idea before !
but actually its a problem for a plugin that conflicts with caching!
Which type of caching do you use? W3TC has a issue saving the content type in some caching methods. Can you try APC or Basic Disk Cache for the Page Cache? I’m using APC Page cache on my own website and it works great with the sitemap plugin.
Thread Starter
Amin
(@hooramin)
i’m using Disk:Enhanced For page caching now .
there isn’t any problem when i use “Disk:Basic” type for page caching
so you mean it’s a bug of W3TC ? should i report this problem to them ?
I think I reported this already long time ago and they said it is a technical limitation. Is APC not available on your system? That should be faster than the file cache.
Thread Starter
Amin
(@hooramin)
I use Zend Opcache in my server and with several tests and benchmark’s experience, I found that’s better than APC !
Unfortunately the zend-opcache not listed in caching type of W3TC!
And if your read this post :
https://rtcamp.com/wordpress-nginx/tutorials/single-site/w3-total-cache/
You ‘ll see the author of W3TC agreed with this options: “Page Cache – Disk Enhanced” !!
So are you sure the APC can be faster?
With this details, If you still recommend APC ,I’ll install and config APC on my server right now!
Hi,
It is hard to generalize it, it always depends on the environment. At the end the difference is probably quite small.
Enhanced page disk completely passes php, since the cached files are static files served by apache. The drawback is that some things like additional headers can not be stored.
So Disk Basic and APC are the ones with the best compatibility, depending on the environment disk enhanced could be a little bit faster. But I don’t think it’s worth the issues.
Thread Starter
Amin
(@hooramin)
Your answer helped me to understand that What is The enhanced disk caching work !
Thanks a lot for your care and support! ♥