Plugin doesn’t work on cached site properly
-
Hello I found, that when non logged-in user comes to the cached site, then logged in (membership website) and he want to add some posts to his favorited posts, on his favorited lists page there is nothing displayed.
In console I see, that your plugin still saves posts ids into local storage for this logged-in user, so that means, that your plugin doesn’t recognize that he is logged in if website is cached.
All pages which are only for logged-in user, including favorite lists page they are, of course, uncached. Other pages must be cached!!!
And this applies to all sites in the world, not just my site. All web developers should take this into account when developing their applications.
Your plugin is very promising and I want to use it very much, but if it doesn’t work properly on cached website, it si quite useless.
Please can you fix it, so it works also when websites is cached.
It will want something like “fallback for cached sites”.
I use Rehub theme. They have their own feature for favorited posts. But they save posts ids for non logged users into transients and for concrete IP adress.
So, when more than one person with the same IP address uses this feature (such as at home or in the same office), everyone will see the posts together on the favorites list page. And this is useless too!
But In Rehub theme they use some code “fallback for cached sites”, and thanks to that, it also works on the cached website.
I can provide you some peace of code for this “fallback for cached sites” for inspiration, for example, how they dealt with it.
Thank you for your time and I hope you try to customize your plugin for cached sites.
David
- The topic ‘Plugin doesn’t work on cached site properly’ is closed to new replies.