• Hello,
    is this work with caching plugin
    for example we have to show different content base on countries
    but if caching plugin is activated then this functionality can not be achieved.
    Appreciate your response
    Thank you.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Benjamin Pick

    (@benjamin4)

    Did you activate the option of the plugin called “Disable caching a page that contains a shortcode or API call to geo-dependent functions.” ? If so, which caching plugin are you using?

    Thread Starter Prince_Dhaval

    (@shethdhaval)

    we are using w3 total cache

    Marius

    (@mmichtus)

    i use also for display content on country based.
    and i found there is big problems with: dynamic cache (from siteground) also with wp-rocket.i want to use with wp-rocket but not working right.
    is is there any difference for cache if i use shorcode or css? (i use css).
    and i’m also on cloudflare (but seems to work fine with cloudflare)

    ivanatanasov

    (@ivanatanasov)

    @mmichtus – Ivan Atanasov here, part of the Senior Support team at SiteGround.

    I decided to drop a line and explain that WP Rocket and SG Optimizer are both implementing a model of full page caching.
    SG Optimizer is including the cached content directly in the server memory – which is expected to be much faster and more reliable.

    If you are planning on using both plugins simultaneously you can consider disabling the Full Page Caching in WP Rocket (guide)

    Marius

    (@mmichtus)

    @ivanatanasov – ok, thanks for explanation, but from all my tests with SG Optimizer problems starts from dynamic cache, with memcache works great.
    even if i exclude that pages from dynamic cache still make problems, only if i disable complete is working fine.
    i want to use geoip with static, dynamic and memcache (maybe to disable dynamic for that pages) but not working well after a while only with dynamic complete removed.
    i said a while because the problems starts after using cache a few days, not from day one.

    ivanatanasov

    (@ivanatanasov)

    @mmichtus – Thank you for the update, Marius.

    If you suspect that old cache is the cause of this issue, you can turn the AutoFlush Cache option in SG Optimizer. In addition to the modifications mentioned in my previous comment.

    I would also recommend creating a ticket from your SiteGround User Area so that we can review and test this issue on our end as well.

    Plugin Author Benjamin Pick

    (@benjamin4)

    @ivanatanasov
    Thanks for chiming in, as I never used WP Rocket before. If there is anything I can do to facilitate the compability between our plugins by default, let me know. I have heard from users of WP Engine that disabling the cache is not possible there.

    Is the filter you link to page-specific, i.e. as soon as one of my geo-specific function is called, the cache is deactivated only for this page?

    ivanatanasov

    (@ivanatanasov)

    @benjamin4
    Please excuse the late response, Benjamin.

    Disabling the WP Rocket full page caching should be possible. I believe that this will be useful in order to achieve it:https://docs.wp-rocket.me/article/61-disable-page-caching

    As for the Exclude URLs functionality of SG Optimizer, users will be able to specify the exact URL they need to exclude from the dynamic caching. Additionally, there are predefined pages that are excluded from the cache such as Cart, My Account, Checkout and Addon pages.

    Pages are excluded based on the URL pattern.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘working with cache’ is closed to new replies.