diff --git a/src/Stache/Indexes/Index.php b/src/Stache/Indexes/Index.php index 00f41b19da..725b8ee1af 100644 --- a/src/Stache/Indexes/Index.php +++ b/src/Stache/Indexes/Index.php @@ -135,15 +135,18 @@ abstract public function getItems(); public function cacheKey() { + $searches = ['.', '/']; $replacements = ['::', '->']; if (windows_os()) { $replacements[1] = '-]'; + $searches[] = '->'; + $replacements[] = '-]'; } return vsprintf('stache::indexes::%s::%s', [ $this->store->key(), - str_replace(['.', '/'], $replacements, $this->name), + str_replace($searches, $replacements, $this->name), ]); }