Optimize database

Posted in: Newspaper
Post count: 95

Hi!

I would like to clean up the _postmeta table a bit, I can delete without problems these meta?

tdc_dirty_content
_wpb_vc_js_status

What is the tdc_content meta instead? Can it be cancelled? I only have 8 records.

Post count: 27744

Hi,

There are many optimization guides provided by our users here in the forum, some made by us; you could check some of them
https://forum.tagdiv.com/cache-plugin-install-and-configure/
https://forum.tagdiv.com/how-to-make-the-site-faster/
https://forum.tagdiv.com/topic/high-number-of-ajax-request/
https://www.infophilic.com/get-almost-100-pagespeed-newspaper-theme/
https://forum.tagdiv.com/topic/score-100100-pagespeed-with-newspaper-wordpress-theme/
https://www.andraware.com/wp-rocket-for-newspaper-theme/
https://spraythemes.com/newspaper-theme/how-to-speed-up-the-newspaper-wordpress-theme-using-wp-rocket/
https://forum.tagdiv.com/topic/page-speed-guide-for-2023-beginners-and-advanced/
https://forum.tagdiv.com/topic/newspaper-theme-speedify-your-website/
https://forum.tagdiv.com/topic/tutorial-chriss-custom-optimizations-for-functions-php-etc/
https://forum.tagdiv.com/cloudflare-cdn/
https://forum.tagdiv.com/topic/theme-causing-high-cpu-usage-2/
https://forum.tagdiv.com/topic/sql-querys-high-cpu/
https://forum.tagdiv.com/topic/newspaper-theme-slow-to-respond/
https://premium.wpmudev.org/blog/optimizing-your-wordpress-database-a-complete-guide/
https://underconstructionpage.com/optimize-wordpress-database/
https://crunchify.com/better-optimize-wordpress-database-all-in-one-guide/

If you use Wp Rocket, you can try to exclude the following files
/jquery-?[0-9.](.*)(.min|.slim|.slim.min)?.js
/jquery-migrate(.min)?.js
/wp-content/plugins/td-composer/legacy/Newspaper/js/tagdiv_theme.min.js
tdBlocksArray

Thank you!

Post count: 95

Thanks Anamaria, but specifically I can delete without problems

tdc_dirty_content
_wpb_vc_js_status
?

To me they look like simple placeholders which are then regenerated if needed.

Another thing, tdc_content, seems to be the same content as _posts -> post_content, should it be left or can it be deleted? I have only 8 records.

Thanks again for the great support you give!

Post count: 95

One more question:

I use Block 7 (td_module_6.php) in Home, I can’t print the contents of the “type” field

The code is as follows:
echo the_field(“type”)

Post count: 95

Obviously I open the line with the php echo code and close it, but the forum won’t let me post the code.

In a nutshell, the problem is that I can’t get the value referring to the article and not to the Home, because automatically the_field takes the ID value of the page where it is called, in my case the Home.

Post count: 35449

Hello,

The tdc_dirty_content and _wpb_vc_js_status are some post meta -> https://i.imgur.com/3BU1HN8.png those are for the post view count you will have to activate the Ajax counter as you can see here: https://i.imgur.com/SQpaCUj.png
If you do not need the view post count and you do not have it on your website then you can remove those.
tdc_content is used for the content -> https://i.imgur.com/CbeSbnL.png this is not indicated to be removed.

Related to block 7, I don’t think I understood exactly what you want to display if this is an article or a CPT? We also recommend using flex blocks, they have options to be set to your liking.

Thank you!

Post count: 95

I need to work with Block 7 (td_module_6.php) in Home, take a look here https://ibb.co/0tXvC1whttps://ibb.co/Ln4QDVz

I need to print the_field(“type”) under date of the specific post, but it show no value because in Home, where the block is present type value is not present.

Post count: 35449

Hi,
Please try like this – https://i.imgur.com/VWmQktJ.png the results will be – https://i.imgur.com/MoYuhmH.png
I hope this will help you!

Post count: 95

I’m sorry, “type” is the name of the field:

I meant something like this doesn’t work in loop:

echo the_field(‘type’, get_the_ID());

Post count: 35449

I understand what you mean, implementing the code is quite difficult, if you want to show an extra field, I suggest using this field – https://i.imgur.com/JEPMTRx.png and a flex block that can be set to look like block 7 – https://i.imgur.com/BO4iJlr.png

Post count: 95

Solution found: echo the_field(“type”, $this->post->ID).

Thanks anyway Calin!

Viewing 11 posts - 1 through 11 (of 11 total)
You must be logged in to reply to this topic.