From 8ce6c31708b411118376c6871c6c1d9c835e6f7a Mon Sep 17 00:00:00 2001 From: "Mark Story mark@mark-story.com" Date: Mon, 29 Aug 2011 22:23:57 -0400 Subject: [PATCH] Adding extra information about DboSource::fetchAll() and result caching. --- lib/Cake/Model/Datasource/DboSource.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/Cake/Model/Datasource/DboSource.php b/lib/Cake/Model/Datasource/DboSource.php index 3e3c30f4c..8adab3bbb 100644 --- a/lib/Cake/Model/Datasource/DboSource.php +++ b/lib/Cake/Model/Datasource/DboSource.php @@ -623,7 +623,10 @@ class DboSource extends DataSource { * * ### Options * - * - cache - Returns the cached version of the query, if exists and stores the result in cache + * - `cache` - Returns the cached version of the query, if exists and stores the result in cache. + * This is a non-persistent cache, and only lasts for a single request. This option + * defaults to true. If you are directly calling this method, you can disable caching + * by setting $options to `false` * * @param string $sql SQL statement * @param array $params parameters to be bound as values for the SQL statement