Hi @aesin
I hope you are doing good today.
The solution for this will be to click on “CLEAR CACHE” in Asset Optimization. However, as there are so many files, I recommend to manually deleting those files via FTP as this will speed up the process and it will help to avoid site freeze (possibly) if the site will have some low server resources and “CLEAR CACHE” in Asset Optimization will trigger some action which could take some of those site resources. Manual removal should be more save in this case if we take into account such an amount of files.
Kind Regards,
Kris
Thread Starter
aesin
(@aesin)
Thank you for your help.
The strange thing I did click on “clear cache” in Asset Optimization and even saw the green message in back end that the cache is cleared, but all the files were still there. Anyway I deleted them using sftp and the site looks still ok.
But I noticed that despite the fact I deactivated autooptimize hummingbird still created the new assets files for the last 2 days. If it continues to do this, we will get the problem again. What could be the reason of that?
-
This reply was modified 4 years, 6 months ago by
aesin.
HI @aesin
Thanks for response!
The reason for it not removing the files may be (and very likely is) exactly what my colleague suspected: with that amount of files, the removal process may simply be timing-out or getting stuck if done via PHP script (which is how the plugin does it).
But I’m wondering why these files are getting created all the time. There should be some files created of course but once the JS/CSS assets are optimized that should stop. Such a huge size of those files – even if there was a conflict with Autoptimize optimization running at the same time – suggests that there’s something more involved.
“Out of the box” I would say that for some reason Asset Optimization is going over and over again which could possibly be happening if the assets (I suppose CSS) are constantly changing. Or there’s some additional optimization/caching feature running that breaks that.
Do you have any staging/dev site (a copy of your live site) where you could safely do some testing?
If yes – could you try disabling all the plugins, leaving only Hummingbird active and the theme (the same that you are using on live site), then clear all cache and use re-check files option in Asset Optimization and then see if these files are getting created over and over again there?
If yes – also try switching theme to Twenty Twenty-One (with no other plugins than Hummingbird enabled) and check again.
Note: it’s important to have such staging site set at the very same server as the live site that is affected by the issue – so preferably under sub-domain or in sub-folder.
Could you try this and update us here about results?
Best regards,
Adam
Hello @aesin ,
We haven’t heard from you for a while 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