• Resolved julien66

    (@julien66)


    Hi Nabil,

    I am trying to use an Evergreen counter. It was working great. But the pages where I use it are quite heavy so I activated a Redis caching option that works great on my host. But now the counter appears expired for all users due to the cookie I guess as you mentioned in a previous thread (https://wordpress.org/support/topic/evergreen-function-doesnt-work-timer-is-the-same-for-all-visitors/). I have the exact same issue. I tried from multiple IPs (different networks or VPNs), but everybody receives the expired action (redirection).

    Is there a way to make the counter work while the pages are being cached?

    Thanks!

    • This topic was modified 3 years, 8 months ago by julien66.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Nabil Lemsieh

    (@nlemsieh)

    Hi @julien66

    You need to exclude the plugin cookie from being cached: _ht_CDT-12345 where 12345 is the campaign ID.

    In the next release coming this week, we’ll manage to automatically bypass cache.

    Let me know how it goes.

    Best,
    Nabil

    Thread Starter julien66

    (@julien66)

    Thank you @nlemsieh. OK I’ll try to do that: I use an Redis cache in front of WordPress (not the usual cache plugins like Rocket), not sure if it’s doable.

    New feature seems great Nabil!

    Also on a side note, did you think about letting the user choose how to store the visitor info? We could have the option to choose to use cookie, IP or both like now. Wouldn’t that be nice to let us choose that? I’m thinking loud, you might have a clear opinion about that.

    Thanks!

    Plugin Author Nabil Lemsieh

    (@nlemsieh)

    Hi @julien66
    Thanks for the update,

    Yes, We’re planning to add the ability to choose which detection technique to use (Cookies, IP, or both) in a future release early next month.

    Thread Starter julien66

    (@julien66)

    @nlemsieh Sounds great!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Cache issue’ is closed to new replies.