mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-22 22:10:43 +02:00
added temp collections cache
This commit is contained in:
1 parent
2b82c36bdd
commit
950f796cbc
5 files changed
+82
-1
No files matched your search
+1
-1
@@ -261,7 +261,7 @@ func LoadCollectionContext(app core.App, optCollectionTypes ...string) echo.Midd
|
||||
return func(next echo.HandlerFunc) echo.HandlerFunc {
|
||||
return func(c echo.Context) error {
|
||||
if param := c.PathParam("collection"); param != "" {
|
||||
collection, err := app.Dao().FindCollectionByNameOrId(param)
|
||||
collection, err := core.FindCachedCollectionByNameOrId(app, param)
|
||||
if err != nil || collection == nil {
|
||||
return NewNotFoundError("", err)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user