szepeviktor/w3-total-cache-fixed

"Never cache the following pages" option not working

icryptoyoda opened this issue · 5 comments

I have tried with the original w3tc plugin, and the "Never cache the following pages:" working fine for me. But with this fixed version, it's not working.

I want to prevent w3tc (fixed) plugin from caching certain pages. How to do it? is there any other workaround available?

mhh... the main difference between original and fixed version is: we support regular expression.
this mean, on fixed version you can reject some uri by writing a regular expression see #398

Maybe your uri match some regex? you can provide an exaple of "Never cache the following pages" input?

devdz commented

Hello there,

I'm trying to disable cache on some specific pages and the option "Never cache the following pages:" seems not to be applied.

My pages I don't want cached are
https://example.com/jobs/add
https://example.com/jobs/preview
and others.

in the setting option i've set:

wp-.*\.php
/resumes/register.+
/jobs/add.+
/jobs/add
/jobs/preview.+
/jobs/preview
.*jobs.*

But the pages still return the headers:

Expires:Thu, 21 Dec 2017 00:57:32 GMT
Keep-Alive:timeout=5, max=500
Last-Modified:Mon, 30 Mar 2015 09:49:14 GMT

----> How can I disable caching on these pages?

Note: these are forms pages where users POST the page, and they get back the cached empty page. So the site is totally broken :)

Thanks,

PS: I'm getting this problem with both the W3tc standard (which says it supports regular expression as well?) and the fixed version.

easy.
/jobs/add*
/jobs/preview*

devdz commented

@P5hngMeAwy unfortunately it's not working for me, even after adding /jobs/add*, I'm still seeing the Expires header sent for those pages /job/add and other under it. Any thoughts?

Hello @devdz
What method are you using?
Try with Disk Enhanced.
Also you need to disable object cache , database cache, purge all and try again.
Can you send me your configuration?
e-mail: terabits1000@gmail.com