Hello,
We have a complex application that uses a lot of clientCustom-typed data sourced for fetching data. We updated our application from LGPL 5.0p-2016-01-07 nightly to latest 2016-04-11 nightly and suddenly our data sources configured to setCacheAllData(true) stopped caching.
We are getting tons of requests to our server. It seems that for some reason, setAutoCacheAllData(true) and/or setCacheAllData(true) and setCacheMaxAge(...) calls have no effect. All requests go to the server.
We ran some diffs on the code and DataSource.js has a change on line 22170 as
.. which seems to check against the clientCustom typed dataprotocol. Would this cause for caching to fail and is this intentional ? Any workarounds ?
Thanks,
Marko
We have a complex application that uses a lot of clientCustom-typed data sourced for fetching data. We updated our application from LGPL 5.0p-2016-01-07 nightly to latest 2016-04-11 nightly and suddenly our data sources configured to setCacheAllData(true) stopped caching.
We are getting tons of requests to our server. It seems that for some reason, setAutoCacheAllData(true) and/or setCacheAllData(true) and setCacheMaxAge(...) calls have no effect. All requests go to the server.
We ran some diffs on the code and DataSource.js has a change on line 22170 as
Code:
...
this.addMethods({
_isServerRequest : function (dsRequest) {
return this.dataProtocol == "clientCustom" ||
dsRequest.cachingAllData ||
(this.cacheAcrossOperationIds &&
(dsRequest.operationType && dsRequest.operationType != "fetch")) ||
(this.cacheAcrossOperationIds === false &&
this.cacheAllOperationId !=
(dsRequest.operationId || dsRequest.operation)
)
;
},
...
Thanks,
Marko
Comment