Added caching flag to database.
This commit is contained in:
parent
237cb22990
commit
02c0eef632
4 changed files with 75 additions and 10 deletions
|
@ -27,6 +27,14 @@
|
|||
*/
|
||||
class Module extends Object
|
||||
{
|
||||
/**
|
||||
* Cache object
|
||||
*
|
||||
* @access protected
|
||||
* @var object
|
||||
*/
|
||||
protected $cache = null;
|
||||
|
||||
/**
|
||||
* Database object
|
||||
*
|
||||
|
@ -156,7 +164,8 @@ class Module extends Object
|
|||
{
|
||||
parent::__construct();
|
||||
|
||||
$this->db = Database::getInstance();
|
||||
$this->cache = Cache::getInstance();
|
||||
$this->db = Database::getInstance();
|
||||
|
||||
if ($autorun === true)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue