Skip to content

Commit 731319c

Browse files
committed
docs: fix undefined variable in caching example
1 parent 48e4c66 commit 731319c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/developers/caching.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ You can use any PSR-16 compatible cache implementation:
6464
use Symfony\Component\Cache\Adapter\FilesystemAdapter;
6565
use Symfony\Component\Cache\Psr16Cache;
6666
67-
$pool = new FilesystemAdapter('inventory', 3600, $cacheDir);
67+
$pool = new FilesystemAdapter('inventory', 3600, '/path/to/cache');
6868
$cache = new Psr16Cache($pool);
6969
7070
**Redis Cache** (for shared/distributed caching):
@@ -94,7 +94,7 @@ caching with persistent storage:
9494
// L1: In-memory (fast) -> L2: Filesystem (persistent)
9595
$chain = new ChainAdapter([
9696
new ArrayAdapter(), // Check memory first
97-
new FilesystemAdapter('inventory', 3600, $dir), // Fall back to disk
97+
new FilesystemAdapter('inventory', 3600, '/path/to/cache'), // Fall back to disk
9898
]);
9999
100100
$cache = new Psr16Cache($chain);

0 commit comments

Comments
 (0)