Skip to content

Commit 81de0c6

Browse files
committed
docs(Cache): document dot-leading cache file limitation
1 parent 6856587 commit 81de0c6

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

‎docs/changelogs/v4.7.7.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ Release Date: Unreleased
66

77
## BREAKING
88

9+
- **Cache:** `FileHandler::validateKey()` now rejects `/`, `\` and null bytes in the cache item file name, independently of `Config\Cache::$reservedCharacters`, so a cache key can no longer point outside the cache directory when that setting is relaxed. See [File Cache Rejects Directory Separators](../installation/upgrade_477.md#file-cache-rejects-directory-separators) for migration instructions.
10+
911
## Message Changes
1012

1113
- Added the `HTTP.invalidFileName` language string.

‎docs/libraries/caching.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ $key = 'search_' . hash('sha256', $userInput);
7070

7171
This is an array of settings specific to the **File** handler to determine how it should save the cache files.
7272

73+
Cache files whose names start with a dot are not fully supported by the File handler: `getCacheInfo()` does not report them, `deleteMatching()` wildcard patterns do not match them, and `clean()` / `cache:clear` do not delete them. Avoid keys and prefixes that produce a leading dot.
74+
7375
### $memcached
7476

7577
This is an array of servers that will be used when using the **Memcached** handler.

0 commit comments

Comments
 (0)