is it possible to invalidate caches? Either for a specific model or even globally if not.
Issue: End admin user created a new department. When listing departments in a drop down select it did not show up for several minutes. I am thinking it was because of Orm caching.
I would like to invalidate the cache for that object when a new object of that type is created.
Orm's internal caching only exists for the duration of the request (it sole purpose is to make sure you get the same object if you select the same record multiple times), so it is extremely unlikely that this is the cause.
Perhaps DB caching is enabled? Or there is caching implemented in the code?