From 9c85ecfa43b0f1722a721054f1931df16fa1604e Mon Sep 17 00:00:00 2001 From: Amit Date: Fri, 19 Feb 2021 23:01:10 +0530 Subject: [PATCH] Fixed: Notice : Function Redis::setTimeout() is deprecated --- core-handlers/utils/util.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core-handlers/utils/util.php b/core-handlers/utils/util.php index f5af44d3..7cfe6b89 100644 --- a/core-handlers/utils/util.php +++ b/core-handlers/utils/util.php @@ -53,9 +53,9 @@ function save_csv_page($atts,$content=null,$shortcode){ $redis->zAdd($key,$pageno,$csv); if(!$ttl) - $redis->setTimeout($key, 60*60); + $redis->expire($key, 60*60); else - $redis->setTimeout($key, $ttl*60); + $redis->expire($ticket, $ttl*60); }