fix: fix issue with clear the reverse proxy cache (#8637)

Refs https://github.com/1Panel-dev/1Panel/issues/8635
This commit is contained in:
CityFun 2025-05-14 18:48:34 +08:00 committed by GitHub
parent c9f8c93083
commit ebaa629342
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1845,7 +1845,7 @@ func (w WebsiteService) ClearProxyCache(req request.NginxCommonReq) error {
if err != nil {
return err
}
cacheDir := GetSitePath(website, SiteProxyDir)
cacheDir := GetSitePath(website, SiteCacheDir)
fileOp := files.NewFileOp()
if fileOp.Stat(cacheDir) {
if err = fileOp.CleanDir(cacheDir); err != nil {