Miscellaneous Functions
forgetCachedQueries()
Signature
Section titled “Signature”forgetCachedQueries() — returns any
Available in: controller, model, mapper, migrator, migration, tabledefinition
Category: General Functions
Description
Section titled “Description”Clears the per-request finder cache that cacheQueriesDuringRequest fills, namespaced under the
reserved request.wheels
model(“X”).forgetCachedQueries()`.
outside a model.
Parameters
Section titled “Parameters”| Name | Type | Required | Default | Description |
|---|---|---|---|---|
modelName | string | no | — | Clear only this model’s slot. Defaults to the calling model’s own name when invoked as |
all | boolean | no | false | Clear every model’s cached queries for the request. Required (true) to wipe everything from |