Update visit timestamp when filtering

This should prevent thread entries from expiring when they shouldn't.
Removed cache timestamp updating

Cache timestamps are no longer used, thread timestamps are used instead.
Also boost performance as now there are a lot less pointless db writes.