• Resolved alanwpeasy

    (@alanwpeasy)


    Hello,
    We use ManageWP to manage updates for our clients WordPress sites.

    Sometimes after the scheduled updates are installed, the site breaks in some way. Usually CSS issues. Simply logging in to the dashboard and purging all cache resolved the issue.

    Our updates get installed every Monday night. Is there any way to schedule a cache purge for after that time? Or any other possible suggestions?

    Thanks, Alan.

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Support qtwrk

    (@qtwrk)

    Hi,

    Perhaps a WP CLI command after your update

    Or schedule an purge API call

    Please let us know if above 2 ways suitable for you.

    Best regards,

    Thread Starter alanwpeasy

    (@alanwpeasy)

    Thanks for your reply.

    I will look at those options. Hopefully, ManageWP fire some kind of hook after performing updates.

    Have a great day.

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    If it has hook, perhaps this option here might also help.

    Best regards,

    Thread Starter alanwpeasy

    (@alanwpeasy)

    Thanks for that.

    Unfortunately ManageWP doesn’t appear to fire any hooks that can be used.

    I have just added the “upgrader_process_complete” hook to LSCache. We’ll see how that goes.

    Thread Starter alanwpeasy

    (@alanwpeasy)

    Hello,

    As per above, adding the “upgrader_process_complete” hook to LSCache – Advanced->Purge All Hooks has not resolved my issue.

    Also, it appears that it has nothing to do with ManageWP managing the updates as I have found it does the same with manually installing updates.

    Currently, I have 5 sites using LSCache, using 3 different themes. I had CSS Minify and CSS Combine enabled on all. All of them appear to have an issue with broken CSS after plugin or theme updates install.

    Manually purging the cache resolves the CSS issues. Therefore, I think the settings in LSCache for CSS Minification/Combining are OK.

    For now, I’m going to have to assume that this feature just does not work properly and not use it.

    I’m not sure what to try next. Hopefully, someone will have some ideas.

    Thanks,
    Alan.

    • This reply was modified 5 years, 2 months ago by alanwpeasy.
    • This reply was modified 5 years, 2 months ago by alanwpeasy.
    Thread Starter alanwpeasy

    (@alanwpeasy)

    Hello Again,

    Another update. I left one of my sites with CSS Minification and Combining enabled to see what will happen. https://www.wpevolve.net/

    After the last updates it was broken again. It looks like what is happening is that URLs in the css get broken.

    EG. URL /wp-content/themes/Divi/core/admin/fonts/modules.ttf gets changed to /modules.ttf

    The theme “Divi” also has an option to combine and minify css/js. I have just switched that off and left it on in LSCache. I’ll check in another week to see how it went.

    Does anyone from the LS Cache developers monitor this forum? or should I be asking this question elsewhere?

    Thanks,
    Alan.

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    Yes, we are here.

    the only feature I know of, from LSCWP, that changes the URL is CDN setting , did you enabled CDN or something ?

    Best regards,

    Thread Starter alanwpeasy

    (@alanwpeasy)

    No, Just checked. “Enable CDN” is off.

    I was having the same issue with 6 sites. On 5, I switched off the LS Cache CSS Minify/Combine. They now all work fine after updates install.

    I have only left it enabled on https://www.wpevolve.net/ and it is the only site that breaks now.

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    I am not seeing any 404 error in dev tool

    If possible , please provide a screenshot of how it breaks, by break you mean like style gone haywire ? page renders incorrect or something ?

    and whenever you see that happens , please enable the debug log , it will log all the actions LSCWP did , like rewrite URL , optimize CSS file …etc , from there , we might have some information

    Best regards,

    Thread Starter alanwpeasy

    (@alanwpeasy)

    Hello,
    Currently, you won’t see an issue. As soon as I purge all LS Cache it fixes the issue.

    What I will do is roll the site back to last nights backup. Then enable debugging, then do the updates. We should see the broken site before purging the cache.

    If you want to take a direct look. Forward me an email address and I will create an admin user for you.

    Thanks for your help. I’ll come back to you soon.

    Thread Starter alanwpeasy

    (@alanwpeasy)

    Hello,

    I restored the site to yesterday, enabled LS Cache debugging, Installed updates. The side did not break.. So frustrating..

    I guess I’ll have to just wait until it breaks again and come back to you.

    Should I leave LS Cache debugging on for now? I have the debug level set to Advanced.

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    Also please set debug log to your IP.

    If the break happens randomly , then this will probably make things more difficult

    But after the break happens , it will always happen until you purge cache , right ?

    so when that happens , please access the front page , copy out the debug log and save it to local

    and note down which URLs are changed to 404 error you see in dev tool.

    then do a purge lscache only (not purge all) , access page again and see if page still breaks or not, and also save the log

    if purge lscache alone doesn’t fix the issue , now repeat above process, but this time , purge JS/CSS file , log it , and see if page fixed or not.

    Best regards,

    Thread Starter alanwpeasy

    (@alanwpeasy)

    Thanks,

    Just tried again. Still didn’t break.

    “But after the break happens , it will always happen until you purge cache , right ?”
    Correct.

    I’ll have to leave it until it breaks again.
    Thanks again for your help.

    Thread Starter alanwpeasy

    (@alanwpeasy)

    Hello,

    Finally, it broke again after an update.

    Purging CSS/JS cache resolved the issue.

    I was getting 404 errors on .ttf and .woff files.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘LSCache having issues with ManageWP’ is closed to new replies.