From 7086507c75f1f607e3d1ad9240bffc040044bcb0 Mon Sep 17 00:00:00 2001 From: Shabeer Ali M Date: Fri, 9 Jul 2021 23:20:23 +0530 Subject: [PATCH] fix #1 --- src/SuperCache/SuperCache.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/SuperCache/SuperCache.php b/src/SuperCache/SuperCache.php index e652537..c9da77e 100644 --- a/src/SuperCache/SuperCache.php +++ b/src/SuperCache/SuperCache.php @@ -120,7 +120,9 @@ public function set($val) $val = str_replace('stdClass::__set_state', '(object)', $val); // Write to temp file first to ensure atomicity $tmp = $this->path . "$key." . uniqid('', true) . SuperCache::EXT; - file_put_contents($tmp, 'path . $key); return $this; }