Okay
  Public Ticket #2290155
Possible caching issue and strange-ness around continuous music player and cache
Closed

Comments

  • Tom started the conversation

    Hi,


    I'm not sure if this is theme related but whenever I write a blog post or sometimes even if I do nothing to the site, the menu disappears, the background player turns transparent, custom css no longer loads and the site overall displays kinda weird. Then if I disable and re-enable the continuous audio player in settings and hit save, everything looks fine again. 

    The problem is, sometimes it just happens for no reason after a week or two even if I don't modify anything on the website which means I constantly have to clear the browser cache and keep an eye on the website to make sure it's loading properly. Is there a way to work out what is going on here? At first I thought it was my caching plugin, "Breeze for Cloudways" but that doesn't explain why it happens at random times when the site is left alone without modification. It also seems to be roughly once a week or two at random or immediately after writing a blog post.

    Do you have any ideas on what might be causing this? Thanks.

  •  646
    Alexandre replied

    Hi Tom,

    Please try to disable the option "Move Dynamic/Custom CSS Into External Stylesheet?" (wp-admin>theme options>general setting)

    If the issue persists please provide a login credential to the wp-admin.

    Thanks,


    Alexandre from the Sonaar.io Crew

  • Tom replied

    Thanks. I will try that and keep an eye on it for a couple of weeks to see if this fixes the problem.

    What is the disadvantage of doing this? I did notice the site load time reports a little higher with it disabled but it was not a huge difference.

  •  1,103
    Max replied

    On every page load, the theme options are being queried in your DB. So if you have a lot of traffic, it can slow down your website because the CPU work a lot.

    By moving the theme options to external CSS, it just load a css file and that CSS file is put in the cache of the user's browser.

    But I think we know what is your issue. Simply re-enabled the move dynamic / custom CSS and I think you'll be fine. The theme options just had to be re-saved.

    Thanks,


    Max from the Sonaar.io Crew

  • Tom replied

    It seemed to do it again about a day later (screenshot attached) even with "Move Dynamic/Custom CSS Into External Stylesheet" set to no. 

    I actually couldn't get it back to working without re-enabling the option then going into the Cloudway's breeze cache plugin and purging the cache and even then it still didn't work until I disabled the CDN and re-enabled the CDN and then disabled the continuous music player setting and save then re-enable and save. 

    I guess I still haven't worked out why it's doing it. It could be the Breeze Cloudways plugin that is having some sort of incompatibility issue, I'm not sure. It's working again for now. I will see how it goes. I did notice an option in the Cloudways plugin that is enabled that said something along the lines of Purge Varnish Cache on new blog post, comment and a few other things. So there might be a relationship there with causing issues when the cache is purged but why the theme might start having issues after the cache is purged, I don't know.

    If it happens again I can give you a login credential to check what might be going on. Thanks.

  •  1,103
    Max replied

    If you are using Cloudways, make sure to disable Varnish in your cloudways settings.


    Thanks,


    Max from the Sonaar.io Crew

  • Tom replied

    I'm a little worried about doing that. From what I've read this could be a problem since the site is up to about 3k views per month now and has been swapping on desktop between no penalty to slow speed penalty which seems to relate a little to whenever a blog post gets shared a lot or ranks high on google. The 17th for example is when I had a number 1 ranking blog post on Google which is that peak you see. And that's with Varnish enabled.

    I worry that disabling varnish might push it into the red/slow speed penalty region more often as it seems to be borderline on some days and over the threshold on others.

    Is there any alternative that would allow Varnish to be used other than manually constantly un-enabling and re-enabling the theme settings every few days or so?

    Thoughts?

    I did find this message on the Cloudways server but I'm not sure what it means. Next to Varnish it says: One of the several layers of caching for your applications(s). You can disable it (ie. when developing or on test/staging server). Do not disable on production servers. If restarted, all the cache is lost and needs to be rebuilt.

    Any advice would be appreciated. Thanks.

  •  1,103
    Max replied

    Disable varnish is not a problem at all and will not slow down your website. We have at least 120 websites running on Cloudways and Varnish is disabled for all of them. In addition, some website receive more than 3K views PER day.  eg: www.snoopdogg.com


    Thanks,


    Max from the Sonaar.io Crew

  • Tom replied

    Ok, thanks.

    I've disabled Varnish. If the problem persists, I'll let you know.

    Thanks for your help.

  •  1,103
    Max replied

    Also, please update your theme to version 4.14. We have fixed an issue this afternoon that should resolve the issue..and maybe it will work with Varnish (but I have not tried varnish with the new fix tho.)


    Thanks,


    Max from the Sonaar.io Crew

  • Tom replied

    Awesome thanks. I just updated. I might leave Varnish disabled for a week or two for troubleshooting purposes. Assuming the problem doesn't re-occur within that period, I'll try re-enabling Varnish to see if it works with it or not.

    Thanks again for your help.

  •  1,103
    Max replied

    We have noticed (= what we have fixed), is when you publish a page IN elementor, the style breaks..

    Now we made sure it does not brake when publish a elementor page.


    Thanks,


    Max from the Sonaar.io Crew

  • Tom replied

    That makes sense now. I did notice a correlation to writing a blog post being about same time when the theme would usually mess up. The blog template was themed in elementor so technically all the blog posts on the site would be elementor pages. Probably just the cache was sometimes delaying the visibility of the break. So the fix will definitely be useful for me. Thanks.

    I did notice that after updating the theme I had to disable and re-enable the continuous music player (saving the settings in between) otherwise it did some sort of strange playback loop where if you loaded a page that autoplays a song, clicked off that page to another page and then click back to the previous page with the autoplay it would play the song over the top and then over the top again and kinda cascade playing the first song over the top of itself every second or two. It was pretty weird. Anyway, disabling the continuous audio player, saving the settings, re-enabling and saving the settings again seems to have fixed it. Just thought I'd let you know in case there is some sort of underlying issue or if someone else complains of the same thing occurring but it could have just been a cache thing. If it does it again, I'll let you know. It's working at the moment after resaving the settings.

  •  1,103
    Max replied

    Excellent. you should be fine now

    Thanks,


    Max from the Sonaar.io Crew