Skip Navigation

[Resolved] when cached, access settings for guest users is working only after hard refresh

This support ticket is created 5 years, 6 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

Tagged: 

This topic contains 2 replies, has 2 voices.

Last updated by Ido Angel 5 years, 6 months ago.

Assisted by: Minesh.

Author
Posts
#1258633

hey,
our site has cache (siteground cache - server level). we have set access permissions for guests - to show a different layout (showing a slider with a registration form).
the problem is, the cache remembers the url of the page and its content, so if a user logs in and then logs out, he still sees the content of the page visible for LOGGED IN USERS, and not as GUEST - unless he preforms a hard refresh.

this happens when we're using PWA only. in regular chrome it's ok.

I think that if i was able instead of redirecting to a different layout - redirecting to a different page, it would have solved the problem, as the urls are different and the cache will handle them separately.

any ideas?

thx!

ido

#1259029

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Well - you can add the action hook wp_logout in order to redirect to different URL.

Please check the following link that may help you:
=> hidden link

Or you can use the plugin:
=> https://wordpress.org/plugins/login-and-logout-redirect/

#1259203

My issue is resolved now. Thank you!