Skip to content

Commit 369b196

Browse files
authored
fix touch()
1 parent e83421b commit 369b196

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SimpleCache.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public function offsetSet($key, $value) {
1818
}
1919

2020
public function offsetGet($key) {
21-
touch(file_get_contents($this->dir . \DIRECTORY_SEPARATOR . $key));
21+
touch($this->dir . \DIRECTORY_SEPARATOR . $key);
2222
if ($this->offsetExists($key)) return unserialize(file_get_contents($this->dir . \DIRECTORY_SEPARATOR . $key));
2323
else return null;
2424
}

0 commit comments

Comments
 (0)