Close

Account

Documentation

Forum

Menu

Reply To: W3C Validator

Post count: 20
Zalparius
October 13, 2018 at 12:11 am #38185

I will explain once again.
Apparently you either don’t understand me or don’t want to understand.
I do not speak about outgoing requests to the social provider. I’m talking about the fact that the Social Share plugin with the counters disabled in the theme settings still makes updates to the database every time you view the page.
I need only social buttons. No likes / views counters.
Since these constant database updates create a huge load on the server, with my 320k + news and a lot of queries.

Here are the requests that could be traced, maybe there are still others:

22 SELECT meta_id
FROM wp_postmeta
WHERE meta_key = ‘jnews_social_counter_last_update’
AND post_id = 127518
+
update_metadata
23 SHOW FULL COLUMNS
FROM wp_postmeta
+
update_metadata
24 UPDATE wp_postmeta
SET meta_value = ‘1539369677’
WHERE post_id = 127518
AND meta_key = ‘jnews_social_counter_last_update’
+
update_metadata
26 SELECT meta_id
FROM wp_postmeta
WHERE meta_key = ‘jnews_social_counter_last_update’
AND post_id = 127518
+ Toggle button
update_metadata
27 UPDATE wp_postmeta
SET meta_value = ‘1539369677’
WHERE post_id = 127518
AND meta_key = ‘jnews_social_counter_last_update’
+ Toggle button
update_metadata

That is, disabling counters in the theme settings in fact does not disable them, but simply hides them, and they continue to work with the database, if I understand correctly.
Is it possible to disable database queries along with disabling counters in the theme settings?
Thank you