Displaying a popup with cache
-
I’m working on a site for a client who requested a custom popup to be displayed for first time users. And after they close it, it shouldn’t display for X amount of time. j
The problem is, the page initially loads and the popup is there. The users closes out of it and a row is inserted into the DB so we know the date and IP of the user who closed so we can have a conditional on whether to display the popup. That’s fine.But the page is getting cached the first time they view the page.
So the user experience is this:
1) go to a page and the popup is displayed because it’s their first time visiting this site and this page
2) they close popup
3) navigate to another page – popup is not displayed this time because it passes the conditional that they’ve already closed it
4) goes back to the initial page and the cached page is loaded. because it’s cached, however, the popup is displayed because (I’m assuming) the conditional code in the backend is not fired; it’s just loading a static cached version of the page.I’ve had this same issue on another site with a different caching plugin. So it’s not an issue with the plugin per say, but is it even possible to display a popup ONCE on a site and not subsequent times if they return to the initial page where it was displayed?
- The topic ‘Displaying a popup with cache’ is closed to new replies.