Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion vendor/wheels/WheelsTest.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,8 @@ component extends="wheels.wheelstest.system.BaseSpec" {

/**
* Runs `callback` and returns the SQL statements the model layer sent while it ran, as an array of
* `{sql, dataSource}`. Each `sql` has a `?` for every bound value; values are never recorded.
* `{sql, dataSource}`. Each `sql` has a `?` for every bound value, so bound values aren't recorded; a
* value written into the SQL itself (`parameterize=false`) appears as written.
* Statements a request query cache answered aren't sent, so they aren't recorded; neither are raw
* `QueryExecute()` / `cfquery` calls, transaction control, or requests made through a TestClient.
*
Expand Down
5 changes: 3 additions & 2 deletions vendor/wheels/databaseAdapters/Base.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,9 @@ component output=false extends="wheels.Global"{

/**
* Internal function. Adds a statement to every active query recorder (F4): its SQL with a `?` for
* each bound value (an IN list shows one `?` per list), never the values, so a failure message can't
* leak data into a log. A recorder with a `dataSource` filter only takes that datasource's statements.
* each bound value (an IN list shows one `?` per list), so a failure message doesn't put bound data
* in a log. A value written into the SQL itself (`parameterize=false`) appears as written. A recorder
* with a `dataSource` filter only takes that datasource's statements.
*/
public void function $recordQuery(required array sql, required struct queryAttributes) {
local.text = "";
Expand Down
8 changes: 7 additions & 1 deletion vendor/wheels/global/cache.cfm
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,12 @@
* until the entry expires or is deleted. When `callback` returns nothing, nothing is cached and `""`
* is returned; when it throws, nothing is cached and the error propagates. `callback` runs outside
* the cache lock, so two requests that miss at the same moment may both call it (the later write
* wins). The cache lives in this server's memory and empties on an application reload or restart.
* wins). When the cache is full, the computed value is returned but not cached, so the next call
* computes it again. The cache lives in this server's memory and empties on an application reload
* or restart.
*
* Keys are shared by every user, session, tenant and host: nothing about the request is added. For
* per-user, per-role or per-tenant data, put that identity in the key, e.g. `"digest-" & userId`.
*
* [section: Global Helpers]
* [category: Caching Functions]
Expand Down Expand Up @@ -413,6 +418,7 @@
/**
* Returns the value cached under `key`, or `defaultValue` when there is no unexpired entry. A cached
* `false`, `0` or `""` is returned as it is. Complex values come back as a copy.
* Keys are shared by every user, session, tenant and host (see `appCacheFetch()`).
*
* [section: Global Helpers]
* [category: Caching Functions]
Expand Down
Loading