Only check links during x:x - x:x timeframe

Created on 20 June 2025, about 1 month ago

Problem/Motivation

We have a huge Website with hundred thousand of links ^^
Is there some possibility to limit the system, only check for broken links if "less people are on the website".
e.g. provide a "from - > to" timeframe, where only during this time, the cron will trigger the linkchecking system?

Steps to reproduce

currently the drupal system is getting slow, when users/editors using the site and in the same time, the linkchecker is doing his work.

Proposed resolution

Implement a timeframe "setting", where only then, the system checks for broken links.

Remaining tasks

discuss first

User interface changes

✨ Feature request
Status

Active

Version

2.1

Component

Code

Created by

πŸ‡¦πŸ‡ΉAustria Grienauer Vienna

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @Grienauer
  • πŸ‡ΊπŸ‡ΈUnited States eahonet

    Not sure if these are the correct methods, but in your case I might

    Option 1
    * create a patch that disables this running with cron. You could go the extra step and make it a checkbox in the settings for others to utilize.
    * the link checking can be done via drush commands. So you can run this from your own script when you want.

    Option 2
    * install the https://www.drupal.org/project/ultimate_cron β†’ module
    * with that module see if you can get the cron for linkchecker to be more in line with your goals

  • πŸ‡¦πŸ‡ΉAustria Grienauer Vienna

    Thank you for your explanation!

    We now use ultimate_cron and configured it, that it is only running at not hightraffic timeslots.

    Next optimization idea: maybe I open another issue for this: Currently all linkchecks are checked constantly.
    Is it somehow possible to mark a link item as excluded, if e.g. the corresponding element was unpublished.
    In short: is there a feature to remove link schedule items from being checked? then we could do an eca action to set this on some cases.
    I guess this should go into another issue tho.

  • πŸ‡ΊπŸ‡ΈUnited States eahonet

    Since I don't think a patch is coming of this particular request, going to change this to closed. I feel that you're right. That there could be room for improvement, but that would be a different task.

Production build 0.71.5 2024