Hello, there was a problem with cleaning the data in the table. It takes something after some time to clear the old records, in my case it is 1 minute. Writing
<?php include_once 'setting.php'; $CONNECT = mysqli_connect(HOST, USER, PASS, DB); mysqli_query($CONNECT, "DELETE FROM `online` WHERE `time` < SUBTIME(NOW(), '0 0:01:0')"); ?> The time parameter in the online table has the following look: 2016-10-13 03:00:50
But he does not want to work (
Everything works, just in the main file the cron task is not involved. Thanks to everyone who took the time.
onlineWHERE datediff (minute,time, NOW ())> 1 - T.Zagidullinrediswith ttl (Time to live) or storage inmemcachewith ttl memory - better.delete- especially if not on an indexed field, a very expensive operation. - E_p