mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-12-10 04:16:29 +08:00
fix: fix issue with clear the reverse proxy cache (#8637)
Refs https://github.com/1Panel-dev/1Panel/issues/8635
This commit is contained in:
parent
c9f8c93083
commit
ebaa629342
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue