Commit bd22ac7a authored by Jordan Breton's avatar Jordan Breton

Fixed apcu cache deletion problem (escape backslashes)

parent a60dcc9c
......@@ -97,7 +97,7 @@ final class APCUBasedCache implements ICacheSystem{
*/
public function getAll(array $keys): iterable {
foreach($keys as $k=>$key){
$keys[$k]="/".str_replace("/",'\/',"^$this->_namespace::$key")."/";
$keys[$k]="/".str_replace(["/","\\"],['\/','\\'],"^$this->_namespace::$key")."/";
}
if(count($keys) === 1) $keys = array_pop($keys);
return new \APCUIterator($keys);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment