Minor fixes to app creation process

This commit is contained in:
frikky
2021-03-03 16:16:43 +01:00
parent 3c6e973f3d
commit 516a6df356
4 changed files with 17 additions and 8 deletions
+6 -1
View File
@@ -6673,6 +6673,7 @@ func createFs(basepath, pathname string) (billy.Filesystem, error) {
// Hotloads new apps from a folder
func handleAppHotload(location string, forceUpdate bool) error {
basepath := "base"
fs, err := createFs(basepath, location)
if err != nil {
@@ -6695,7 +6696,11 @@ func handleAppHotload(location string, forceUpdate bool) error {
return err
}
cacheKey := fmt.Sprintf("workflowapps-sorted")
cacheKey := fmt.Sprintf("workflowapps-sorted-100")
requestCache.Delete(cacheKey)
cacheKey = fmt.Sprintf("workflowapps-sorted-500")
requestCache.Delete(cacheKey)
cacheKey = fmt.Sprintf("workflowapps-sorted")
requestCache.Delete(cacheKey)
return nil