I worked around this issue by changing a bit of the code in foyer-public-min.js.
A made it so that it will refresh the whole browser window every 9min (because of 6 slides of 30sec), because the issue only arrises after the 5min content refresh.
I changed:
major_refresh_timeout=setTimeout(foyer_display_reload_window,288e5)
to (changed setTimeout to window.setInterval + time)
major_refresh_timeout=window.setInterval(foyer_display_reload_window,54e4)
An set this line from 5min to 8hours:
foyer_loader_intervalObject=window.setInterval(foyer_display_load_data,3e5)
to
foyer_loader_intervalObject=window.setInterval(foyer_display_load_data,288e5)
I rather have a whole window refresh than content not showing after 5 minutes.
Shortcodes work as well when using this workaround. I really hope the foyer_display_load_data
function can be improved.
-
This reply was modified 5 years, 1 month ago by watskebart.