diff --git a/src/Cache/FileTagSet.php b/src/Cache/FileTagSet.php index 61a1558..ac566b2 100644 --- a/src/Cache/FileTagSet.php +++ b/src/Cache/FileTagSet.php @@ -16,7 +16,7 @@ class FileTagSet extends TagSet{ */ public function tagKey($name) { - return 'cache_tags' . $this->store->separator .$name; + return 'cache_tags' . $this->store->separator . preg_replace('/[^\w\s\d\-_~,;\[\]\(\).]/', '~', $name); }