| 1 | <?php  | 
            ||
| 19 | class purge_cache extends \phpbb\cron\task\base  | 
            ||
| 20 | { | 
            ||
| 21 | /** @var config $config */  | 
            ||
| 22 | protected $config;  | 
            ||
| 23 | |||
| 24 | /** @var cache $cache */  | 
            ||
| 25 | protected $cache;  | 
            ||
| 26 | |||
| 27 | /**  | 
            ||
| 28 | * Constructor  | 
            ||
| 29 | *  | 
            ||
| 30 | * @param config $config Config object  | 
            ||
| 31 | * @param cache $cache MediaEmbed cache object  | 
            ||
| 32 | */  | 
            ||
| 33 | public function __construct(config $config, cache $cache)  | 
            ||
| 38 | |||
| 39 | /**  | 
            ||
| 40 | 	 * {@inheritDoc} | 
            ||
| 41 | */  | 
            ||
| 42 | public function run()  | 
            ||
| 54 | |||
| 55 | /**  | 
            ||
| 56 | 	 * {@inheritDoc} | 
            ||
| 57 | */  | 
            ||
| 58 | public function is_runnable()  | 
            ||
| 62 | |||
| 63 | /**  | 
            ||
| 64 | 	 * {@inheritDoc} | 
            ||
| 65 | */  | 
            ||
| 66 | public function should_run()  | 
            ||
| 70 | }  | 
            ||
| 71 |