Skip to content

Commit bd3066c

Browse files
Update
1 parent 4bd65e5 commit bd3066c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

engine/kernel/cache.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public static function set(string $id, callable $fn, array $lot = []): array {
6767

6868
public static function stale(string $id, $for = '1 day') {
6969
if (is_file($f = self::f($id))) {
70-
return time() + self::t($for) > filemtime($f);
70+
return !(filemtime($f) > time() - self::t($for));
7171
}
7272
return true;
7373
}

0 commit comments

Comments
 (0)