• Resolved watskebart

    (@watskebart)


    Is it possible to disable the automatic 5 minute refresh? I’m asking this for debugging purpose. I can’t provide you a link because my wordpress setup is in a airgapped environment.
    I experiencing the same issues as some other users, like images or embedded code not showing anymore after the 5 minute refresh.
    For example: When using this embedded weather code in a regular WP post and putting the post in a slide the widget disappears after 5 minutes.

    Maybe make the 5 minute refresh optional or user defined.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Menno Luitjes

    (@mennolui)

    Hi @watskebart,

    There is no user setting to disable the automatic refresh and I don’t have an easy way for you to disable it with code, sorry.

    Shortcodes are not supported at the moment. Some shortcodes work, some don’t work. Or they will stop working after 5 minutes, when your display loads new slide content. Generally speaking the more complex, e.g. animations, sliders,.. Most shortcodes are simply coded to work on one static web page only, not in the context of a Foyer slideshow. I would love to make all shortcodes out there work within Foyer slides, but I have not yet found a way to do this on the Foyer side of things.

    You could however create a web page (without website header and footer etc.) that contains your shortcode, then add it to Foyer on an External web page slide. In this environment the shortcode will work! Let me know if this helps.

    Best,
    Menno

    Thread Starter watskebart

    (@watskebart)

    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 4 years, 9 months ago by watskebart.
    Plugin Author Menno Luitjes

    (@mennolui)

    Hi @watskebart, good to hear this works for you, and you definitely found the right bits of code to stop loading new content/changes ?? I wouldn’t recommend it to other users though as it is very specific to your use case with a fixed amount of 6 slides. The problem is not with the foyer_display_load_data function by the way, but with handling shortcodes in general. Some won’t even work during the first 5 minutes. I would love to make all shortcodes out there work within Foyer slides, I have some ideas, but I have not yet found the best way to do this on the Foyer side of things. For now shortcodes are not supported, but stay tuned for future releases.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Disable 5 minute refresh’ is closed to new replies.