mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-14 01:34:55 +02:00
* Environment is now configurable ('prod' for production, 'dev' for development)
Significantly better load times with 'prod' !!!
This commit is contained in:
@@ -16,6 +16,10 @@ class Cache
|
||||
|
||||
static public function getInstance($engine = '', $prefix = '')
|
||||
{
|
||||
if(config('env') === 'dev') {
|
||||
return new self();
|
||||
}
|
||||
|
||||
if(!self::$instance) {
|
||||
switch(strtolower($engine)) {
|
||||
case 'apc':
|
||||
|
Reference in New Issue
Block a user