Automate Unlinking or Allow Cron Job
I really need a way to automate the unlinking of broken links in my blog. Is there a way to do this via cron job or can you create this functionality?
-
AdminJānis Elsts (Admin, W-Shadow.com) commented
There is currently no built-in way to automate unlinking.
As for adding tracking failure_count, the check_count field already kind of does this. For working links it's always 0, and for broken links it indicates the number of consecutive failed checks. So you could do an SQL query with something like "WHERE broken = 1 AND check_count > =10" to get the links you want to unlink.
-
John Rubins commented
How do we automate unlinking?.
Or could you please add something like a failure_count <- gets incremented when if a link is checked and the result is it is broken. but get reset if the link is not broken.
I would like to use this as a basis for the auto-unlink.
Say when the failure_count reaches to 10 it will perform the unlink processThanks