Refactoring the cache class.
This commit is contained in:
@@ -54,7 +54,10 @@ class Cache {
|
||||
*/
|
||||
public static function get($key, $default = null, $driver = null)
|
||||
{
|
||||
if (is_null($driver)) $driver = Config::get('cache.driver');
|
||||
if (is_null($driver))
|
||||
{
|
||||
$driver = Config::get('cache.driver');
|
||||
}
|
||||
|
||||
if (is_null($item = static::driver($driver)->get($key)))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user