wordpress-seo icon indicating copy to clipboard operation
wordpress-seo copied to clipboard

[Feature Request] Make an option to reset the text link counter to zero and redo analysis

Open rmarcano opened this issue 9 years ago • 9 comments

It would be useful to have an easy way to reset the link counter to zero and re-do the link count again, in cases where there are changes to a site's domain, changes to articles,etc.

rmarcano avatar Aug 16 '17 23:08 rmarcano

This can be useful in case a site's domain changes or if changes are made without using the hooks that trigger our text link counter to update, for example on imports.

benvaassen avatar Aug 22 '17 13:08 benvaassen

Please inform the customer of conversation # 222468 when this conversation has been closed.

Pcosta88 avatar Sep 05 '17 20:09 Pcosta88

Let's do this, seems easy enough.

jdevalk avatar Jan 20 '18 17:01 jdevalk

I desperately needed this so I ended up reverse engineering the code. Basically this removes the cached information from the database and so YOAST offers to count things again.

I did a backup of my database before playing around with this, so please do the same!

In the queries below you need to replace PREFIX with your database prefix.

-- RESET INTERNAL LINKING
DELETE FROM `PREFIX_postmeta` WHERE meta_key = '_yst_prominent_words_version';

-- RESET TEXT LINK COUNTER
TRUNCATE TABLE `PREFIX_yoast_seo_links`;
TRUNCATE TABLE `PREFIX_yoast_seo_meta`;

iliepandia avatar Mar 01 '18 07:03 iliepandia

Please inform the customer of conversation # 356140 when this conversation has been closed.

Pcosta88 avatar May 08 '18 15:05 Pcosta88

Please inform the customer of conversation # 412453 when this conversation has been closed.

mariusghitulescu avatar Aug 06 '18 06:08 mariusghitulescu

Please inform the customer of conversation # 571437 when this conversation has been closed.

amboutwe avatar Dec 27 '19 21:12 amboutwe

I desperately needed this so I ended up reverse engineering the code. Basically this removes the cached information from the database and so YOAST offers to count things again.

I did a backup of my database before playing around with this, so please do the same!

In the queries below you need to replace PREFIX with your database prefix.

-- RESET INTERNAL LINKING
DELETE FROM `PREFIX_postmeta` WHERE meta_key = '_yst_prominent_words_version';

-- RESET TEXT LINK COUNTER
TRUNCATE TABLE `PREFIX_yoast_seo_links`;
TRUNCATE TABLE `PREFIX_yoast_seo_meta`;

Thanks, this is very useful info.

chrisjimallen avatar Aug 22 '20 14:08 chrisjimallen

This functionality has been built in to the Yoast Test Helper Plugin. Closing this issue.

Djennez avatar Aug 25 '20 17:08 Djennez