Skip Navigation

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

This support ticket is created hace 5 años, 6 meses. 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.

Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.

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)

Etiquetado: 

Este tema contiene 2 respuestas, tiene 2 mensajes.

Última actualización por Ido Angel hace 5 años, 6 meses.

Asistido por: Minesh.

Autor
Mensajes
#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

Idiomas: Inglés (English )

Zona horaria: 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:
=> enlace oculto

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

#1259203

My issue is resolved now. Thank you!