Added caching flag to database.

This commit is contained in:
Josh Sherman 2011-10-30 17:30:05 -04:00
parent 237cb22990
commit 02c0eef632
4 changed files with 75 additions and 10 deletions

View file

@ -9,7 +9,7 @@
* Redistribution of these files must retain the above copyright notice.
*
* @author Josh Sherman <josh@gravityblvd.com>
* @copyright Copyright 2007-2011, Josh Sherman
* @copyright Copyright 2007-2011, Josh Sherman
* @license http://www.opensource.org/licenses/mit-license.html
* @package PICKLES
* @link http://p.ickl.es
@ -129,6 +129,11 @@ class Database extends Object
{
$instance->setDatabase($datasource['database']);
}
if (isset($datasource['caching']))
{
$instance->setCaching($datasource['caching']);
}
}
// Caches the instance for possible reuse later