Problem/Motivation
In my project, content items are translated into more than 20 languages. In this situation, the extraction also requires 20x more resource. Fortunately, we can assume that the URLs of the links are the same everywhere, so the easiest performance improvement is to only check the links in the default translations.
Proposed resolution
* Add a new config option: "check_translations"; default to true (for BC reasons).
* In \Drupal\linkchecker\LinkExtractorService::extractFromEntity, check the value of the setting.
Remaining tasks
- MR with code
- test
User interface changes
Nothing.
API changes
New option which allows to disable checking all translations.
Data model changes
Nothing.
| Comment | File | Size | Author |
|---|
Issue fork linkchecker-3614972
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
huzookaComment #5
codebymikey commentedComment #6
codebymikey commentedAttached static patch without tests to reduce conflict with other issues.
Comment #7
huzookaComment #8
codebymikey commentedAttached a version of the patch with the fixed update hook.
Comment #9
codebymikey commentedComment #10
dimilias commentedThis seems to be working as expected. I tested it in our projects and could avoid checking translated links.