Re-add cache to manga controller so cache can be invalidated on update

This commit is contained in:
Timothy Warren 2016-04-14 11:05:16 -04:00
parent de2f4fca1e
commit 79f71eee09
1 changed files with 7 additions and 0 deletions

View File

@ -38,6 +38,12 @@ class Manga extends Controller {
*/
protected $base_data;
/**
* Cache manager
* @var \Aviat\Ion\Cache\CacheInterface
*/
protected $cache;
/**
* Constructor
*
@ -54,6 +60,7 @@ class Manga extends Controller {
'url_type' => 'manga',
'other_type' => 'anime'
]);
$this->cache = $container->get('cache');
}
/**