Update the path patterns of static files while refreshing (#1907)

* Fixed the bug of not being able to query according to the content

The content table is associated at query time now.

* Update static file mappings on refresh
pull/2076/head
yhc 2022-05-05 22:20:13 -05:00 committed by GitHub
parent b20ab0f1e5
commit bca4e53e77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -53,7 +53,12 @@ public class StaticStorageServiceImpl
@Override
public List<StaticFile> listStaticFolder() {
return listStaticFileTree(staticDir);
List<StaticFile> staticFiles = listStaticFileTree(staticDir);
onChange(); // To update the mapping of local files.
return staticFiles;
}
@Nullable