-
AuthorPosts
-
March 26, 2023 at 3:07 am #1402526Jason BolgerGuest
Hi team,
I have been doing some testing with WP 6.1 and have found that Enfold is causing a massive slowdown with WP 6.1.
The tell tale sign is that when using Debug Bar or Query Monitor the Object Cache Hits goes from ~10k (normal) to ~100k (crazy).
Page loads go from being 0.7-2s to being 2-5s for simple admin pages.
Switching the theme to Storefront drops Object Cache Hits back down to a normal level and performance is restored. I have tested with WP 6.1 and 6.1.1 as well as Enfold 4.9 through 5.5. As above I have disabled all plugins.
This issue does not happen with with Storefront or any other theme.
Can you please provide some guidance on this issue. I have been a customer for several years however you’re blocking support posts for customers.
Thanks,
JasonMarch 28, 2023 at 7:20 am #1402724Hey Jason Bolger,
Thank you for the inquiry.
Does the issue occur when the Enfold > Performance > File Compression settings are disabled? When the file compression options are enabled, the theme stores all the scripts and stylesheets in the database and this might be causing the spike in the object caching.
Would you mind providing a screenshot of the issue? You can use imgur, savvyify or dropbox for the screenshot. Thanks.
Best regards,
IsmaelMarch 28, 2023 at 12:04 pm #1402774Thanks for the reply Ismael,
I thought you were onto something, but I disabled the File Compression options and found no difference at all :(
This is the same page (Enfold Settings) loading on 6.0.3 and 6.1.1
This should be pretty easily re-producable – only installed plugin is Query Browser.
March 28, 2023 at 12:05 pm #1402775Can’t edit posts – but check out the difference in page load time 😲
April 3, 2023 at 4:50 am #1403357Hi,
You should also try and disable the “Unique Timestamp Of Merged Files And WP Object Cache Bug” settings to get rid of duplicates. The option is located in the Enfold > Performance > Show Advanced Options section. Please make sure to purge the cache, do a hard refresh or test the site on incognito mode.
Best regards,
IsmaelApril 5, 2023 at 1:19 pm #1403604Hi Ismael,
If I disabled caching as we previously discussed, I don’t think this setting has any effect.
At any rate I disabled it per your request with no change.
Can you please advise how we get some proper investigation and a real fix for this issue as this is blocking WP core updates on my production site given the horrific performance.
Thanks,
JasonApril 8, 2023 at 6:55 pm #1403897April 9, 2023 at 12:41 pm #1403939You made me dig further :) I tried a default install and it worked OK, not great when I enabled Enfold (still 3x the cache hits of the default theme)
So I restored my DB and started deleting options until I found what caused it. Turns out Enfold is doing something weird when I have my WP_LANG set to en_AU
Can you please pass this on to the devs to reproduce and provide some kind of fix? It should not be that slow just because I set WP_LANG to en_AU. Note that with any other theme this is not an issue.
Thanks,
JasonApril 9, 2023 at 12:49 pm #1403940* the parameter causing the issue is WPLANG. Can’t edit my posts.
April 9, 2023 at 6:17 pm #1403965Hi,
Thanks for the feedback, the Dev Team writes that the WP_LANG is deprecated since WP 4.0 if you google it
Enfold uses the WP function to register the text domain – not WP_LANG.
What would be worth a try is to create en_AU translation files (po and mo) with loco translate and place them in enfold/lang folder.Best regards,
MikeApril 9, 2023 at 6:22 pm #1403967I am talking about the wp_option value for the key WPLANG which is set by the WP Settings screen. This is most certainly NOT deprecated.
I can not be the only person with this issue – every Enfold user with a non-default language must be seeing this slowdown.
Can you please provide a fix for this?
April 9, 2023 at 6:32 pm #1403970It should also be added that it is only Enfold that breaks, and only with WP 6.1+.
April 11, 2023 at 2:16 pm #1404109Hi,
Thank you for breaking down the problem. WP introduced class WP_Textdomain_Registry with 6.1 and this class caused the problem.
If you need a hotfix please modify enfold/functions.php:
Around line 173 you find:
if( ! function_exists( 'avia_lang_setup' ) ) { add_action( 'after_setup_theme', 'avia_lang_setup' ); function avia_lang_setup() { $lang = apply_filters( 'ava_theme_textdomain_path', get_template_directory() . '/lang' ); load_theme_textdomain( 'avia_framework', $lang ); } avia_lang_setup(); }
Replace
avia_lang_setup();
with
if( did_filter( 'after_setup_theme' ) ) { avia_lang_setup(); }
If you need help let us know and we can do it for you.
Do not forget to make a backup of the original file for a fallback.Best regards,
GünterApril 11, 2023 at 2:32 pm #1404110Thanks Günter,
This hotfix brings page cache hits back down to a reasonable level, and almost halves the page generation time where there is no translation present, however Enfold is still running measurably slower on WP 6.1+.
For instance, with Enfold on average of 10 tests, a category archive generates in 0.43 seconds on 6.1, but 0.39 seconds on 6.0.
If I do the same test with twenty twenty three, a category archive generates in 0.36 seconds on v6.1, and 0.35 seconds on 6.0.
I was hoping that the caching improvements in 6.1 would bring some page speed improvements.
Do you have any other ideas on what the difference could be?
Cheers,
JasonApril 11, 2023 at 3:29 pm #1404112Hi Jason,
I found this post: https://wordpress.org/support/topic/website-slowdown-problem/
Enfold with the ALB shortcodes has some overhead to load in php, css and js. We added the .min files for css and js on user request as HTML 5 is optimized for that. You could try this instead of the merged files.
Maybe increase of memory might also help – and use of a cache plugin and responsive images (but this you probably know/use already).
Best regards,
GünterApril 11, 2023 at 3:32 pm #1404113Hi Günter,
I am comparing the same version of Enfold on WP 6.0 and WP 6.1. It runs slower on WP 6.1.
The stock theme does not run slower on 6.1.
Seems like there is still some optimisation to be done in Enfold even after the lang fix.
Cheers,
JasonApril 20, 2023 at 3:32 pm #1405050@Günter any further updates?
April 25, 2023 at 2:54 am #1405462Hi team, can we please get an update and or a timeline as to when a fix will be included in a version of the plugin.
Thanks,
Jason -
AuthorPosts
- You must be logged in to reply to this topic.