Details
-
Improvement
-
Resolution: Fixed
-
Trivial
-
None
-
Professional Edition
-
None
Description
This little change makes the delete query and also the count much faster as the mysql function has only to be called once and not for every row.
-$where = "UNIX_TIMESTAMP(`timestamp`) < $cutoff";
+ $where = "`timestamp` < FROM_UNIXTIME($cutoff)";