#1 2026-01-13 12:01:20

larand54
Member
Registered: 2018-12-25
Posts: 124

Replacement for FlushInternalDBCache in Mormot2

I'm trying to convert a mormot1-project to mormot2 and have a lot of questions.  Start here asking if there is a replacement of the function "FlushInternalDBCache" ?


Delphi-11, WIN10 and Win11

Offline

#2 2026-01-13 13:18:14

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 15,380
Website

Re: Replacement for FlushInternalDBCache in Mormot2

Look at the basic notes of mORMot 2 migration in the main readme.
https://github.com/synopse/mORMot2/blob … g-solution

All the ORM is not any more in TRestServer, but in IRestOrmServer.
This is a breaking change, but allows much better coupling of the logic.

Two seconds search of "FlushInternalDBCache" in the source code and you find the solution.

Offline

Board footer

Powered by FluxBB