Plugin Support
qtwrk
(@qtwrk)
Hi,

but you may want to exclude the actual front-end request URI instead of file name
Best regards,
Thread Starter
RezaY
(@mohammad983)
@qtwrk Actually in some pages we have a section tag. It is displayed when a if condition returns true.
Condition is about user’s country. For example if user’s country is U.S.A, the tag will be displayed.
The problem is sometime the pages became cache. So the if condition does not work.
I want to found out a way to stop caching the php file which the if function located there.
-
This reply was modified 5 years, 6 months ago by
RezaY.
Plugin Support
qtwrk
(@qtwrk)
Hi,
So you actually want to “vary” the cache based on user’s location/country ,instead of disabling cache ?
Best regards,
Thread Starter
RezaY
(@mohammad983)
@qtwrk
Hi
Actually, both way can be useful. each one has some advantages for my situation. especially if I can disable cache for the PHP file( the function that displays a section tag)
Plugin Support
qtwrk
(@qtwrk)
Hi,
You can not uncache a file , but only URI
you can put URI into no-cache list
if this page works with cookie , you can use cookie to vary the cache
Best regards,
Plugin Support
qtwrk
(@qtwrk)
Hi,
I’m going to mark this topic “Resolved”, due to lack of activity.
If you still need help, please feel free to re-open it.
Best regards,