mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/12476] Increase assets also from acp_styles and phpbbcli
Increase assets also from "ACP > Styles > Purge Cache" and phpbbcli PHPBB3-12476
This commit is contained in:
7
phpBB/phpbb/console/command/cache/purge.php
vendored
7
phpBB/phpbb/console/command/cache/purge.php
vendored
@@ -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;
|
||||
|
||||
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
|
||||
|
Reference in New Issue
Block a user