mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-12-12 05:15:59 +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 {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
cacheDir := GetSitePath(website, SiteProxyDir)
|
cacheDir := GetSitePath(website, SiteCacheDir)
|
||||||
fileOp := files.NewFileOp()
|
fileOp := files.NewFileOp()
|
||||||
if fileOp.Stat(cacheDir) {
|
if fileOp.Stat(cacheDir) {
|
||||||
if err = fileOp.CleanDir(cacheDir); err != nil {
|
if err = fileOp.CleanDir(cacheDir); err != nil {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue