• Resolved RezaY

    (@mohammad983)


    I have a PHP file where located in /wp-content/themes/theme_name/downloadbox.php
    I want to exclude it for caching
    how can I do it?

Viewing 6 replies - 1 through 6 (of 6 total)
  • 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,

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘exclude a specific php file for caching’ is closed to new replies.