Skip to content

Commit

Permalink
feature: openapi_doc 的 cache_key 现在可以自动化
Browse files Browse the repository at this point in the history
  • Loading branch information
krissss committed May 8, 2024
1 parent c4ae86c commit ff890f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DTO/ConfigOpenapiDocDTO.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function getCacheKey(): string
$cacheKey = call_user_func($this->cache_key);
}

return $cacheKey ?? __CLASS__;
return $cacheKey ?? md5(serialize($this->scan_path));
}

public function applyModify(OpenApi $openapi)
Expand Down

0 comments on commit ff890f2

Please sign in to comment.