Improve handling of forums with custom domain names

Where a site is temporarily unreachable, don't respond
with a permanent redirect.

Cache sites for five minutes to speed up redirects and
improve the error handling.