8 lines
242 B
MySQL
8 lines
242 B
MySQL
|
DELIMITER $$
|
||
|
CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `cache`.`cacheCalc_clean`()
|
||
|
BEGIN
|
||
|
DECLARE vCleanTime DATETIME DEFAULT TIMESTAMPADD(MINUTE, -5, NOW());
|
||
|
DELETE FROM cache_calc WHERE expires < vCleanTime;
|
||
|
END$$
|
||
|
DELIMITER ;
|