Skip to content

Commit f3c55d8

Browse files
committed
cache response && fix bug
the cache key maybe more prefix Signed-off-by: cyd622 <luffywang622@gmail.com>
1 parent f076f7e commit f3c55d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Middleware/CacheResponseMiddleware.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ protected function cacheSet()
167167
if (\Cache::getStore() instanceof \Illuminate\Cache\TaggableStore) {
168168
return \Cache::tags(self::CACHE_TAG);
169169
}
170-
$this->cacheKey = self::CACHE_TAG . '.' . $this->cacheKey;
170+
$this->cacheKey = \Illuminate\Support\Str::start($this->cacheKey, self::CACHE_TAG . '.');
171171
return app('cache');
172172
}
173173

0 commit comments

Comments
 (0)