This will remove all the queries from the named query cache. If name is not specified, all queries from default cache will be removed.
ormEvictQueries([cacheName, datasource])
returns void
Name | Type | Required | Default | Description |
---|---|---|---|---|
cacheName | string | No | Name of the cache region that you want to evict. If you do not specify the cache, the default query cache is evicted. | |
datasource | string | No | Name of the data source whose cache you want to evict. |
This will remove any cached queries from the default cache and cause the query to run again
ormEvictQueries();