I am using Link Checker 7.x-1.1 with HTTP Parallel Request Library 7.x-11. LC is configured to check links weekly. However, it is running upon each and every cron run (i.e., hourly).

It should not matter, but my D7.22 site is hosted by Pantheon with PHP 5.3 and Nginx (instead of Apache) in the mix.

Comments

hass’s picture

Category: bug » support
Status: Active » Fixed

Nothing wrong. Only links are checked every week. SET THIS VALUE TO 4 WEEKS, not less please.

Anonymous’s picture

Status: Fixed » Active

Why? I do not understand. A short explanation will be appreciated.

hass’s picture

Status: Active » Fixed

You should not overload other people servers with your link checks. Every 4 weeks is fine. I should remove this setting. Neverteless cron runs linkchecker it will only check links if the time limit has exceeded since last check. Check out the code for all details, please.

areikiera’s picture

Status: Fixed » Active

I'm experiencing this issue. I've set the value to 4 weeks and I have cron running every 3 hours, however in my log linkchecker appears to be running every time cron runs:

linkchecker 04/30/2013 - 9:05am Memory usage: 56.53 MB, Peak memory usage: 56.8 MB.
linkchecker 04/30/2013 - 9:05am Link checks completed.
linkchecker 04/30/2013 - 8:28am Memory usage: 73.96 MB, Peak memory usage: 76.57 MB.
linkchecker 04/30/2013 - 8:28am Link checks completed.
linkchecker 04/29/2013 - 10:26pm Memory usage: 106.47 MB, Peak memory usage: 109.62 MB.
linkchecker 04/29/2013 - 10:26pm Link checks completed.
linkchecker 04/29/2013 - 6:47pm Memory usage: 92.19 MB, Peak memory usage: 94.06 MB.
linkchecker 04/29/2013 - 6:47pm Link checks completed.
linkchecker 04/29/2013 - 3:48pm Memory usage: 115.02 MB, Peak memory usage: 126.88 MB.
linkchecker 04/29/2013 - 3:48pm Link checks completed.
linkchecker 04/29/2013 - 11:31am Memory usage: 59.93 MB, Peak memory usage: 71.02 MB.
linkchecker 04/29/2013 - 11:31am Link checks completed.
linkchecker 04/29/2013 - 8:31am Memory usage: 103.25 MB, Peak memory usage: 105.12 MB.
ETC.....

You said "Nothing wrong" to the previous user. Is this normal behavior and just something we don't understand? If so, the log is rather misleading.

Thanks!

hass’s picture

Status: Active » Fixed

This is normal behavior. Every cron run may check links or not. Every link has a timestamp and the sql select returns links where these timerange has expired only.

Anonymous’s picture

Status: Fixed » Active

I have a couple of question re "the sql select returns links where these timerange has expired only"...

A. So, let's say I have Link Checker set to "run cron" every 4 weeks. What that really means is that Link Checker runs at every cron interval (typically hourly), but for those links it already knows about it only rechecks them if 4 weeks or more has elapsed since they were last checked.

Is that right?

B. In addition to A, upon each cron run (typically hourly), ALL content that Link Checker is configured to check is scanned for links. For each link found, the link may have already been checked (see A above). If not, then it is checked, for the first time, and a record of the link and the outcome of checking it are added to the linkchecker_link data table along with a timestamp of when the check was done.

Is this correct?

Thanks,

Bob

hass’s picture

Status: Active » Fixed

A: Yes
B: No, if content is saved links are extracted.

Read the titles and descriptions in admin UI very carefully, please. Do not interpret anything other into it, take it as written or review the code if you need more details, please.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.