Make status.dat/objects.cache interval configurable.

Fixes #5262