[Solar-svn] Revision 3162
pmjones at solarphp.com
pmjones at solarphp.com
Fri May 16 19:16:21 CDT 2008
Solar_Sql_Adapter
* [CHG] Method fetchTableList() now caches to the key "table_list", vice "fetchTableList()".
* [CHG] Method fetchTableCols() now caches to the key "tables/$table/cols", vice "fetchTableCols()/$table".
Modified: trunk/Solar/Sql/Adapter.php
===================================================================
--- trunk/Solar/Sql/Adapter.php 2008-05-17 00:00:03 UTC (rev 3161)
+++ trunk/Solar/Sql/Adapter.php 2008-05-17 00:16:21 UTC (rev 3162)
@@ -1368,7 +1368,7 @@
*/
public function fetchTableList()
{
- $key = $this->_getCacheKey(__FUNCTION__);
+ $key = $this->_getCacheKey('table_list');
$result = $this->_cache->fetch($key);
if (! $result) {
$result = $this->_fetchTableList();
@@ -1399,7 +1399,7 @@
*/
public function fetchTableCols($table)
{
- $key = $this->_getCacheKey(__FUNCTION__ . "/$table");
+ $key = $this->_getCacheKey("tables/$table/cols");
$result = $this->_cache->fetch($key);
if (! $result) {
$result = $this->_fetchTableCols($table);
More information about the Solar-svn
mailing list