-
AuthorPosts
-
May 24, 2018 at 12:48 pm #961501
Hi!
We’re having into some issues with the server on our site running Enfold.
The issue is our wp_options table with autoload = yes rows is over 3MB.
Hundreds of thousands of these autoload yes rows are from Avia Builder. These are the results of the query with number of rows per key:
355000 aviaAsset_css_filecontent
92754 aviaAsset_js_filecontent
34933 av_alb_usage_av_textblock
32707 av_alb_usage_av_heading
32547 av_alb_usage_av_one_third
32493 av_alb_usage_av_two_third
32492 av_alb_usage_av_video
11611 avia_options_enfold_childCould you offer some guidance as to which rows are needed and which are old, deprecated or can be removed?
Thank you
May 25, 2018 at 2:25 pm #962135Hey SCMHR_HomeOffice,
Here is an article for you
If you need further assistance please let us know.
Best regards,
VictoriaJune 1, 2018 at 10:41 pm #965588Hi Victoria,
That is a great article, one that I’m familiar with. I am not asking how to delete rows in the db.
I’m asking specifically about the thousands of autoload yes options added by Enfold to the db.
My question to you guys as developers of Enfold is if we can delete these or if doing so will cause issues, visible or otherwise, in our site?June 2, 2018 at 12:51 am #965625Hi again,
My apologies, I was misunderstanding our problem. My question is now limited to just a yes or no answer to the question:
Can I expect functionality issues from setting the following wp_options registries to autoload = no?:
av_alb_usage_av_textblock
av_alb_usage_av_heading
av_alb_usage_av_one_third
av_alb_usage_av_two_third
av_alb_usage_av_videoThank you
June 4, 2018 at 5:10 pm #966646Hi SCMHR_HomeOffice,
I asked my colleagues for their input.
Best regards,
VictoriaJune 4, 2018 at 5:39 pm #966662Hi,
Thank you for using Enfold.
av_alb_usage_ is needed when using Performance -> Disabling of template builder elements -> Load only used elements.
Not sure, why you have so many entries – actually there should be only one for each ALB element.
You can set it to “no” and check, if it has a negative effect on page loading speed. From functionality it should not make any problems if the options are loaded seperatly when needed.
Best regards,
GünterJune 17, 2018 at 3:02 pm #973897Thank you Günter.
June 17, 2018 at 6:15 pm #973962Hi SCMHR_HomeOffice,
Glad you got it working for you! :)
If you need further assistance please let us know.
Best regards,
VictoriaJune 22, 2018 at 12:56 am #976067You may close this thread, thank you!
October 19, 2018 at 8:01 pm #1024196Is it OK to delet aviaAsset_css_filecontent and aviaAsset_js_filecontent?
October 21, 2018 at 11:10 pm #1024624Hi,
Yes it is OK, do it and let us know!
Best regards,
BasilisNovember 13, 2018 at 1:22 am #1032821I deleted them but they are coming back. Is it because I enable the compression of css and js?
November 15, 2018 at 7:12 pm #1034094Hi debra15,
Yes, they are regenerated when you enable compression.
Best regards,
VictoriaFebruary 12, 2019 at 11:17 pm #1066135While optimizing site speed I ran into the same issue. Enfold by far is the biggest wp_options polluter, resulting in a size of 4.6MB !
The css and js data should NOT be stored in wp_options, it’s not designed for that and slows everything down. A quote from a database specialist:
When a WordPress page loads, it runs this query every single time:
SELECT * FROM wp_options WHERE autoload = ‘yes’
If the wp_options table is larger than 1MB in size this query results in rather heavy database use, which means you should try to clean up the wp_options table.To find the rows with the largest amount of data in the option_value field, use the query:
SELECT option_name, length(option_value) FROM wp_options WHERE autoload=’yes’ ORDER BY length(option_value) DESC LIMIT 30
If you find plugins that are polluting the options table with unnecessarily large rows, we recommend you to file a bug report with the plugin’s author.Tip #4 https://seravo.com/blog/13-tips-for-a-secure-efficient-wordpress-database/
February 14, 2019 at 3:29 pm #1067002Hi,
Thanks for the info.
The database entries where the theme stores the compressed css and js code are not required every time a page is loaded. They are only fetched if the merge scripts or stylsheets do not exist or have to be regenerated. You can install the Query Monitor plugin to confirm that.
Best regards,
IsmaelFebruary 15, 2019 at 7:22 pm #1067533Thanks but I would still prefer a smaller wp_options table. Seems more appropriate to have its own table.
February 18, 2019 at 6:50 am #1068143May 1, 2020 at 10:09 pm #1208975@Ismael, what is the progress with this. If your wordpress developers haven’t replied by now, and there isn’t a fix in place, then they do not know what they are doing. ezFl0w is completely correct.
This is a serious issue, the wp_options table should not be used for this sort of purpose.
- This reply was modified 4 years, 7 months ago by Michael.
May 4, 2020 at 6:49 pm #1209649 -
AuthorPosts
- You must be logged in to reply to this topic.