Anti.Social wrote:that option is present already, just enter 86401 instead of 86400 and it should drop all entries older then 24 hours and 1 second.
doesn't it still reset at midnight?
No, it would work like this:
Say, Joeblow visited 23h 59m 40s ago, you are viewing your forum index, he is listed. Now, 22 seconds later, you refresh the page, Joeblow would no longer be on the list because his entry in the database is older then 24h 00m 01s and would there for get dumped by the cleaning routine in the beginning of the script.
The way the script works, is if you set the time to exactly 1 day (86400 seconds) then it will asume you want it to refresh @ midnight, then using a small specialized function it calculates the time() value for midnight of that day. If you set a slighly higher value it will dump ANYTHING OLDER
then that value, no matter the actual time of day.