jamieburchell
Forum Replies Created
-
Sure! Here’s a sample.
Looking at the first website I tried CompressX on, there are a lot more WebP files generated, but the second website, for some reason mainly only produced AVIF files and threw out the WebP as being larger than the original in most cases.
I have a reference JPG which is 59495 bytes. Converter for Media creates a WebP of 47098 bytes whereas ConvertX says that its WebP was larger than the original. Both plugins are at the default compression level, using the same ImageMagick library.
In fact, ConvertX creates hardly any WebP images in my tests.
Forum: Plugins
In reply to: [AVIF, WebP Converter] Possible memory leak?Thank you for checking!
I have just tested a competitor/alternative plugin and the memory fluctuates and ultimately remains quite a bit higher, so I suspect this is to be expected with memory intensive operations.
Forum: Plugins
In reply to: [AVIF, WebP Converter] Possible memory leak?Thanks!
It seems to work fine, I just tried it.
Forum: Plugins
In reply to: [W3 Total Cache] Missing stylesheets referenced in HTML – race condition?Are there any updates here?
I observed a new behaviour recently straight after clearing the cache – a PHP-FPM segfault. That’s a novel one, but I have seen it now on a couple of websites on different servers.
Forum: Plugins
In reply to: [W3 Total Cache] Missing stylesheets referenced in HTML – race condition?Hi @vmarko
I understand completely and that makes perfect sense, but this happens when just purging the Page Cache and in my testing I already had the “browser cache” features disabled. I also made sure that my test server wasn’t allowing the caching of HTML documents.
Forum: Plugins
In reply to: [W3 Total Cache] Missing stylesheets referenced in HTML – race condition?Hi @vmarko
My testing was in Google Chrome incognito and refreshing the page or loading in another tab at the same time.
Forum: Plugins
In reply to: [W3 Total Cache] Missing stylesheets referenced in HTML – race condition?Hi @vmarko
For me, I only use the External CSS method and I can only speak about the Disk Enhanced cache. The reason I mentioned flushing the Elementor CSS is that I observed that stylesheets referenced in the delivered HTML cache file are missing, or they are empty minified files (because the CSS files are missing).
However, I’m hoping that you’d be able to reproduce some issues if you were to replicate the actions I took on my screencast. Here, I only had Elementor, Elementor Pro and W3TC plugins activated. I was also testing in a Private Browsing window and ensured browser caching was disabled. If you need any further details about the setup, let me know.
That 30 second window of serving the old cached HTML is problematic too if you have cleared the minify cache, since for 30 seconds you are getting the browser serving you HTML which references CSS files that have not yet been minified by W3TC. In my testing, some stylesheets never get created/minified until after the 30 second window has passed.
Forum: Plugins
In reply to: [W3 Total Cache] Missing stylesheets referenced in HTML – race condition?Hey @vmarko
I can reproduce issues with only the Page Cache (Disk Enhanced) active.
If I take W3TC out of the mix completely by disabling all of the caching features then Elementor renders pages and stylesheets properly.
I have put together a short screencast of my findings so far on a dummy website. Hoping it will help clarify what I am seeing and when.
Forum: Plugins
In reply to: [W3 Total Cache] Missing stylesheets referenced in HTML – race condition?Unfortunately it’s also not the only issue. I can still replicate a case where the generated cache file that is served to the visitor is missing references to CSS files i.e. missing the actual
<link rel="stylesheet" ...
element. Yet, after removing the cache file and trying again it will eventually include everything again.Forum: Plugins
In reply to: [W3 Total Cache] Missing stylesheets referenced in HTML – race condition?@vmarko While testing locally I noticed that if I remove the check in the code where it allows the old cached page to be served if it’s within the last 30 seconds, it fixes the issue with missing stylesheets because the page is regenerated. I’m not really sure what the purpose of serving that stale cache is. Interestingly though, in production, if I clear the page cache and refresh I get served the new page.
Hi @vmarko
It’s just something I observed happening during my testing. It could be related, I’m not sure. I’m wondering if it causes a problem serving stale cache after a purge because the stylesheets referenced in those old files may have been rebuilt/renamed during an Elementor CSS flush/minify flush.
Forum: Plugins
In reply to: [W3 Total Cache] Missing stylesheets referenced in HTML – race condition?Thanks @vmarko
If there’s anything I can do to help let me know.
Forum: Plugins
In reply to: [W3 Total Cache] Missing stylesheets referenced in HTML – race condition?Funny, I can’t reproduce it using Memcached method (I don’t have Redis installed). We use Disk Enhanced to remove the overhead of PHP > Redis/Memcached and serve the built HTML files directly from disk. It even works most of the time ??