Skip to content

Commit

Permalink
Fixed: Notice : Function Redis::setTimeout() is deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
thecancerus committed Feb 19, 2021
1 parent 73fef78 commit 9c85ecf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core-handlers/utils/util.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

}

Expand Down

0 comments on commit 9c85ecf

Please sign in to comment.