You are not logged in.
Pages: 1
Hi Arnaud,
WE can disable the caching at the dabble level using TSQLDatabase.UseCache, but how to do the same with TSQLRestServer?
Thanks.
Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.
Offline
See "5.5. ORM Cache", and especially "12.4. CRUD level cache" paragraphs of the SAD 1.18 pdf as reference.
By default, there is no caching at REST level.
Caching will then be enabled via calls to the following method, either globally for one TSQLRecord table, or for a set of ID in a given TSQLRecord table.
aRestInstance.Cache.SetCache(..)
Also note the following:
Client.Cache.Clear is used to reset all cache settings (i.e. not only flush the cache content, but delete all settings previously made with Cache.SetCache() or Cache.SetTimeOut() calls.
I updated the documentation to make all this more explicit.
See http://synopse.info/fossil/info/34eb32169a
Offline
Great! It's obvious now
Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.
Offline
Pages: 1