3
SDK: Provide a way to disable the cache
Source: directus/directus#22941 · opened by @stondini
Summary An external application imports data to Directus (10). Firstly, it fetches data from a legacy system and compare to the existing records in Directus. Secondly, it upsets or deletes records according to the comparison result. The application must be sure that the fetched records from Direscrus are up to date. Meaning, the cache must be disabled in order to get the latest state of the records. Also, the application authenticates using a user which is not an admin in order to avoid any other data manipulation. That means, the application can't use the clearCache() command as only admin can. Basic Example _No response_ Motivation Currently, in Directus 10, the only way to get the most recent data is to execute the clearCache() before each read command. Also, the user must be admin of the whole system which is not secure. Detailed Design A possible implementation could be to add a disableCache() extension like below in TypeScript: Requirements L…
No pledges yet. Be the first to back this.
Comments
Similar requests
Allow extensions to access the configured directus cache
27 votes · 0 comments
Clear cache CLI command
21 votes · 0 comments
`CACHE_ENABLED` should not affect `CACHE_CONTROL_S_MAXAGE`
1 vote · 0 comments
Add System Services to Sandbox SDK
1 vote · 0 comments
Cache only for specific items
2 votes · 0 comments
No comments yet.