Browse Source

Remove XML cache function

Vova Tkach 5 years ago
parent
commit
f970fab2a7
1 changed files with 4 additions and 0 deletions
  1. 4 0
      engine/wrapper/wrapper.go

+ 4 - 0
engine/wrapper/wrapper.go

@@ -304,3 +304,7 @@ func (this *Wrapper) RemoveProductImageThumbnails(product_id, filename string) e
 	}
 	return nil
 }
+
+func (this *Wrapper) RemoveProductXmlCacheFile() error {
+	return os.Remove(this.DHtdocs + string(os.PathSeparator) + "products.xml")
+}