
-
AuthorPosts
-
November 29, 2021 at 11:53 pm #1330900
Hello,
I’m facing similar issue as in this post (Huge number of avia records in wp_postmeta table).
My home and contact page create thousand of records with the exact same data and at the end, crash the site due to lack of memory space.meta_key: _av_css_styles meta_value: a:6:{s:7:"post_id";i:51;s:8:"css_file";s:11:"post-51.css";s:9:"timestamp";s:14:"ver-1637476177";s:6:"status";s:7:"success";s:13:"processed_ids";a:5:{i:0;s:44:"av-jsw8fw41-bbc40f4202bcf57cc2ffefed16be7cad";i:1;s:40:"av-rkpj-d11e23df7db495ee11cfa0714cb7b408";i:2;s:44:"av-jsdbxuqs-7acd6bed48cdb50ed20b1d1fa7b03110";i:3;s:44:"av-jsdbxi8o-e70ca35ffed7520fc76f57fe10493e7a";i:4;s:40:"av-48cr-216f260c969bf97acd93fa40678413dd";}s:13:"include_posts";a:0:{}}
I don’t edit these pages very often. I have also noticed that the uploaded images lost their metadata but I don’t know if this is related. This is the 2nd time we are suffering this major issue.
Could you please investigate?November 30, 2021 at 11:08 am #1330973Hey onizet,
Thank you for the inquiry.
The new custom fields are for the posts css file creation for custom element styles, which is supposed to improve the site speed. But if you are having trouble with the database and you believe that these custom fields are causing it, then you can disable it using this filter in the functions.php.
/** * Filter to skip css file generation. * You can add logic to skip for certain pages/posts only. * * @since 4.8.6.1 * @param boolean $create * @return boolean true | false or anything else to skip generation of css file */ function custom_avf_post_css_create_file( $create ) { return false; } add_filter( 'avf_post_css_create_file', 'custom_avf_post_css_create_file', 10, 1 );
Unfortunately, you cannot disable the other custom fields that we discussed in the previous thread because those fields contain the builder elements or shortcodes.
Best regards,
IsmaelNovember 30, 2021 at 5:41 pm #1331032Thank you Ismael for your quick response.
I’m talking about 100k+ identical records. The pages were not edited since 1 year.I was wondering what could cause this crazy never-ending loop – I don’t have any CRON jobs scheduled.
December 1, 2021 at 10:52 am #1331114Hi,
Do they have the same meta keys? Using the code above should prevent the theme from creating the _av_css_styles custom fields. You might also want to check entries generated by your plugins including contact forms and analytics.
And if you want to completely remove the existing post css files entries from the database, you can run this query.
DELETE FROM wp_postmeta WHERE meta_key = '_av_css_styles';
Please make sure to create a site backup or a restore point before doing so.
Best regards,
IsmaelDecember 1, 2021 at 3:39 pm #1331178Yes exactly the same data.
I don’t rely on any contact plugin and analytics is client-based (google analytics).
I have multisite enable tough and the upload folders is configured to be “files”. I notice sometimes files stand in files, sometimes in /sites/x/, maybe this is the starting point where enfold don’t find the generated avia_posts_css?December 2, 2021 at 9:10 am #1331258Hi,
Thank you for the update.
I notice sometimes files stand in files, sometimes in /sites/x/,
What do you mean? Have you tried disabling the post css files? You can add the code in the functions.php file to prevent the theme from autogenerating those files. This should also decrease the entries in the database. If not, try to delete them manually using the query above. Just make sure to create a database backup before doing so.
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.