Add url cache select params
This commit is contained in:
parent
c6a568501e
commit
0ec493e7d8
@ -471,7 +471,7 @@ func (c *Collections) addURLCacheToDriveCollections(
|
|||||||
driveID,
|
driveID,
|
||||||
prevDelta,
|
prevDelta,
|
||||||
urlCacheRefreshInterval,
|
urlCacheRefreshInterval,
|
||||||
c.handler.NewItemPager(driveID, "", api.DriveItemSelectDefault()),
|
c.handler.NewItemPager(driveID, "", api.DriveItemSelectURLCache()),
|
||||||
errs)
|
errs)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|||||||
@ -112,3 +112,14 @@ func DriveItemSelectDefault() []string {
|
|||||||
"malware",
|
"malware",
|
||||||
"shared")
|
"shared")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// URL cache only needs a subset of default select fields.
|
||||||
|
// This improves memory usage for delta query operations done by URL cache.
|
||||||
|
func DriveItemSelectURLCache() []string {
|
||||||
|
return idAnd(
|
||||||
|
"content.downloadUrl",
|
||||||
|
"deleted",
|
||||||
|
"file",
|
||||||
|
"folder",
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user