After I enabled relatedlinks module, my server took a huge hit in resources and web services slowed to a crawl. I hope you can answer several questions regarding the discovery process so that I can minimize its impact on my server.

1. After enabling the module, does the discovery process occur for all applicable nodes immediately and does it occur only once?

2. Do the discovered links refresh automatically for all applicable nodes when you change global settings for relatedlinks?

3. I plan on disabling the cronjob for refreshing discovered links. Is there a way to manually update the discovered links per node? Do discovered links refresh when I resave a node?

Comments

Zen’s picture

Status: Active » Fixed

Related links - manual, parsed and discovered are cached in the related links table.

Discovered links: When a user views a node, if there are cached discovered links, then it displays them. If not, it checks if an update flag is set, and if so, it recalculates the discovered links for the node and caches them. A cron job resets this update flag for dated nodes every now and then to ensure fresh results.

So to answer your questions:

1. No, only upon view and refresh every X days.
2. I don't believe the module does a reset every time the discovered links form is submitted (and still enabled). This is due to the fact that the links will expire automatically and be recalculated.
3. You might be better off increasing the discovered links cron frequency to a longer duration. And yes, all related links are purged upon node save.

Hope that helps.
-K

GC_Chi’s picture

Yes, that helps tremendously. Thank you!

Anonymous’s picture

Status: Fixed » Closed (fixed)