diff options
Diffstat (limited to 'phpBB/phpbb/console/command/cache')
| -rw-r--r-- | phpBB/phpbb/console/command/cache/purge.php | 7 | 
1 files changed, 6 insertions, 1 deletions
diff --git a/phpBB/phpbb/console/command/cache/purge.php b/phpBB/phpbb/console/command/cache/purge.php index 017bdc5144..013183cb35 100644 --- a/phpBB/phpbb/console/command/cache/purge.php +++ b/phpBB/phpbb/console/command/cache/purge.php @@ -28,13 +28,17 @@ class purge extends \phpbb\console\command\command  	/** @var \phpbb\user */  	protected $user; -	function __construct(\phpbb\cache\driver\driver_interface $cache, \phpbb\db\driver\driver_interface $db, \phpbb\auth\auth $auth, \phpbb\log\log $log, \phpbb\user $user) +	/** @var \phpbb\config\config */ +	protected $config; + +	public function __construct(\phpbb\cache\driver\driver_interface $cache, \phpbb\db\driver\driver_interface $db, \phpbb\auth\auth $auth, \phpbb\log\log $log, \phpbb\user $user, \phpbb\config\config $config)  	{  		$this->cache = $cache;  		$this->db = $db;  		$this->auth = $auth;  		$this->log = $log;  		$this->user = $user; +		$this->config = $config;  		$this->user->add_lang(array('acp/common'));  		parent::__construct();  	} @@ -49,6 +53,7 @@ class purge extends \phpbb\console\command\command  	protected function execute(InputInterface $input, OutputInterface $output)  	{ +		$this->config->increment('assets_version', 1);  		$this->cache->purge();  		// Clear permissions  | 
