I have this weird problem with both on desktop and mobile, which requires a manual refresh in order for the index-page to show new posts. It also appears as if the user is not logged in.
Basically, I have a custom login function with wp_signon. The user logs in and get redirected to their “account” page. Here they are shown as logged with the appropriate menu for logged in users. If I click that “Star” menu-button, which take me back to the homepage, the user suddenly appears to be logged out. When I press a post, the user is logged in again. But on some posts, they appear to be offline.
Even if I change the custom login function to redirect to the homepage instead of the account page, it’s the exact same problem. Even on the homepage the user is now shown as logged in, but if you press start or type in the website url: www.blabla.com, the user is suddenly shown to be logged out.
When I refresh the homepage everything is as it should.
This is an extremely annoying problem.
Can it be some sort of a database problem?