Update cache.php

This commit is contained in:
FusionPBX
2019-11-18 18:01:10 -07:00
committed by GitHub
parent 0e56d1b7e5
commit 4ec796c9f3
+1 -5
View File
@@ -41,8 +41,6 @@ class cache {
return false; return false;
} }
//send a custom event
//run the memcache //run the memcache
$command = "memcache set ".$key." ".$value; $command = "memcache set ".$key." ".$value;
$result = event_socket_request($fp, 'api '.$command); $result = event_socket_request($fp, 'api '.$command);
@@ -84,7 +82,6 @@ class cache {
//close event socket //close event socket
fclose($fp); fclose($fp);
} }
//get the file cache //get the file cache
@@ -126,7 +123,6 @@ class cache {
//close event socket //close event socket
fclose($fp); fclose($fp);
} }
//cache method file //cache method file
@@ -134,7 +130,7 @@ class cache {
//change the delimiter //change the delimiter
$key = str_replace(":", ".", $key); $key = str_replace(":", ".", $key);
// connect to event socket //connect to event socket
$fp = event_socket_create($_SESSION['event_socket_ip_address'], $_SESSION['event_socket_port'], $_SESSION['event_socket_password']); $fp = event_socket_create($_SESSION['event_socket_ip_address'], $_SESSION['event_socket_port'], $_SESSION['event_socket_password']);
if ($fp === false) { if ($fp === false) {
return false; return false;