• Resolved vincent2546

    (@vincent2546)


    Hello,

    I have an issue with Humingbird’s asset optimization feature.
    WP Core version : 5.8.1
    Humingbird free version : 3.11
    Asset optimization configuration :
    Automatic
    Speedy
    Files : CSS only
    Exclusion : many files generated by elementor (which are too often modified)

    I use Asset optimization to concatenate and minify some of the CSS used by my website. Most of the time it works well and files like [my_site]/wp-content/uploads/hummingbird-assets/94baf3fd53ef0a1acf231d839d0febb5.css are served.

    But sometime, a css file becomes suddenly no longer available and give a 404 which break the design of the whole page. I use page cache (not the one provided by Humingbird because my host already provide this feature) and if I clear the static html cache, then the html decide to load a new concatenated css.

    I guess that this is because a change has been made with the files that are being used to generate the concatenated css. So it’s normal for Hb to generate another concatenated css sometimes. But does it have to immediately delete the old css ? I should precise that my html cache is already automatically cleared every 4 hours.

    In this log extract, we can see that a css is generated from some files. And just after, another css is generated from the same files.

    [2021-10-12T16:40:39+00:00] Processing group: wphb-1 (handles: theplus-front-css, plus-pre-loader-css, hello-elementor, hello-elementor-theme-style, elementor-icons, elementor-frontend)
    [2021-10-12T16:40:39+00:00] Asset elementor-frontend [styles] has been successfully processed.
    [2021-10-12T16:40:39+00:00] Minify style elementor-frontend
    [2021-10-12T16:40:40+00:00] Group optimized, hash: 58c5cb74c0f1ffc8e9b32be400010aa0
    [2021-10-12T16:41:04+00:00] Processing group: wphb-1 (handles: theplus-front-css, plus-pre-loader-css, hello-elementor, hello-elementor-theme-style, elementor-icons, elementor-frontend)
    [2021-10-12T16:41:04+00:00] Asset elementor-frontend [styles] has been successfully processed.
    [2021-10-12T16:41:04+00:00] Minify style elementor-frontend
    [2021-10-12T16:41:05+00:00] Group optimized, hash: 957f72cf2ec2a7045c7bf9709b2cba1e

    The thing is, after 16h41 (UTC) 58c5cb74c0f1ffc8e9b32be400010aa0.css was no longer available and give a 404.
    You say in your documentation (https://wpmudev.com/docs/wpmu-dev-plugins/hummingbird/#asset-optimization) that old concatenated files are not removed immediately to avoid conflicts. It doesn’t seem to be the case there. Is there a way to avoid HB deleting 58c5cb74c0f1ffc8e9b32be400010aa0.css immediately ?

    Thank you

    • This topic was modified 3 years, 4 months ago by vincent2546.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @vincent2546

    Sorry to hear you are having this issue.

    You can enable the Hummingbird > Caching > Clear all cache on Post/Page update, this can prevent some issues like that, but I am afraid we can’t reduce how fast the plugin generate the file once the Hummingbird > Caching > Settings > File detection is enabled by default ( I don’t suggest disabling it ) and if the hash is regenerated means the file is getting an update.

    But to prevent issues you can use the Elementor on inline mode, the Elementor page/post CSS are usually small and we end on adding it to inline anyway, so on Elementor > Settings > Advanced switch to inline CSS, clear all cache, recheck the Assets optimization.

    Let us know the result you got.
    Best Regards
    Patrick Freitas

    Plugin Support Amin – WPMU DEV Support

    (@wpmudev-support2)

    Hello @vincent2546 ,

    We haven’t heard from you for several days now, so it looks like you don’t have more questions for us.

    Feel free to re-open this ticket if needed.

    Kind regards
    Kasia

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Asset optimization gives css files that are deleted too quickly’ is closed to new replies.