Hello Directus Community,
I’m setting up an architecture where:
-
Directus is used only for the Admin/CMS interface.
-
A Spring Boot application acts as the main API Gateway/Custom Backend for all client traffic, writing directly to the shared database.
My concern is Directus’s internal data cache. If Spring Boot writes data directly to the DB (bypassing the Directus API), content managers may see stale data in the Admin Panel.
My Questions:
-
What is the recommended method to force Directus to invalidate its cache after an external write operation (e.g., using the
/utils/cache/clearAPI)? -
In a similar Admin-Only + Custom API setup, have others found it best to route all CMS-related writes through the Directus API just to ensure automatic cache clearing?
Any experience or best practices for this setup would be helpful! Thank you.