mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 15:03:25 +00:00
Simplify base
This commit is contained in:
@@ -166,11 +166,7 @@ abstract class base implements cache_cacheableInterface
|
||||
|
||||
public function get_cache()
|
||||
{
|
||||
if ( ! $this->cache) {
|
||||
$this->cache = $this->app['cache'];
|
||||
}
|
||||
|
||||
return $this->cache;
|
||||
return $this->app['cache'];
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -180,7 +176,6 @@ abstract class base implements cache_cacheableInterface
|
||||
*/
|
||||
public function get_data_from_cache($option = null)
|
||||
{
|
||||
|
||||
if ($this->get_base_type() == self::DATA_BOX) {
|
||||
\cache_databox::refresh($this->app, $this->id);
|
||||
}
|
||||
|
Reference in New Issue
Block a user