Skip to content

Commit

Permalink
修正request_cache_tag判断
Browse files Browse the repository at this point in the history
  • Loading branch information
liu21st committed Jul 4, 2023
1 parent a598c38 commit 06cb92c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/think/middleware/CheckRequestCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,11 @@ public function handle(Request $request, Closure $next, $cache = null): Response

if ($cache) {
if (is_array($cache)) {
[$key, $expire, $tag] = array_pad($cache, 3, null);
[$key, $expire, $tag] = array_pad($cache, 3, '');
} else {
$key = md5($request->url(true));
$expire = $cache;
$tag = null;
$tag = '';
}

$key = $this->parseCacheKey($request, $key);
Expand Down

0 comments on commit 06cb92c

Please sign in to comment.