diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2014-05-11 10:03:30 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2014-05-11 10:03:30 +0200 |
commit | 0871e649f6b7a647d2d5ff947ee14df4d2b2da79 (patch) | |
tree | 8bfbb2e76b099cb2c054ecc16e1e30bc6d49dac9 /phpBB/phpbb/console/command/cache | |
parent | d340d2fe253e2628a52a669353bf5e74c5c859a1 (diff) | |
parent | 5dacd7ff5ba7826a1831f6b243fc3c5e8fb2ce0e (diff) | |
download | forums-0871e649f6b7a647d2d5ff947ee14df4d2b2da79.tar forums-0871e649f6b7a647d2d5ff947ee14df4d2b2da79.tar.gz forums-0871e649f6b7a647d2d5ff947ee14df4d2b2da79.tar.bz2 forums-0871e649f6b7a647d2d5ff947ee14df4d2b2da79.tar.xz forums-0871e649f6b7a647d2d5ff947ee14df4d2b2da79.zip |
Merge pull request #2428 from n-aleha/ticket/12476
[ticket/12476] Increase assets version on cache purge
* n-aleha/ticket/12476:
[ticket/12476] Label the constructor as public
[ticket/12476] Increase assets also from acp_styles and phpbbcli
[ticket/12476] Increase asset version on cache purge
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 |