• Resolved agkapo

    (@agkapo)


    Hello,
    In case of cache everything all my users are getting the same content based to who was the first user that was cached.
    Widgets are actually running a wordpress query to get results based on location and serve user with those results.

    Can somehow cache all from the page except the widget area?
    The widget is created from a example.php (if i can declare it somewhere to not cache the result or something like that)

    Also if usagve of $_SERVER[“HTTP_CF_IPCOUNTRY”] instead of cookie can somehow help!

    I hope the general scope of my question is clear.
    Is there any solution for that?
    Can you please advice me what exactly to look for?

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Gulshan Kumar

    (@thegulshankumar)

    This is out of scope because CF Cache Everything mode is suitable for serving static site.

    Plugin Contributor Salvatore Fresta

    (@salvatorefresta)

    Hi,
    no it’s not possible ’cause Cloudflare caches the whole page content. You should load widget content dynamically using ajax. Ajax requests are not cached. This is the tip ??

    Thread Starter agkapo

    (@agkapo)

    Great , I thought it as a solution.
    Thanks a lot.

    Plugin Contributor Salvatore Fresta

    (@salvatorefresta)

    You’re welcome!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Widgets in pages are created based on cookie value’ is closed to new replies.