Skip to content

Commit 46b0fa7

Browse files
committed
Fix double prefixing in APCu Handler
1 parent 287ea04 commit 46b0fa7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

system/Cache/Handlers/ApcuHandler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,12 @@ public function save(string $key, $value, int $ttl = 60): bool
5757

5858
public function remember(string $key, callable|int $ttl, Closure $callback): mixed
5959
{
60-
$key = static::validateKey($key, $this->prefix);
61-
6260
if (is_callable($ttl)) {
6361
return parent::remember($key, $ttl, $callback);
6462
}
6563

64+
$key = static::validateKey($key, $this->prefix);
65+
6666
return apcu_entry($key, $callback, $ttl);
6767
}
6868

0 commit comments

Comments
 (0)