mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-27 09:12:41 +01:00
Include custom header PHID in header logo cache key
Summary: Ref T4214. Reduce the need for installs to purge caches. Test Plan: {F329350} - Changed header twice. - New one showed up without dirtying cache. Reviewers: btrahan Reviewed By: btrahan Subscribers: epriestley Maniphest Tasks: T4214 Differential Revision: https://secure.phabricator.com/D11965
This commit is contained in:
parent
027d4ffd8b
commit
46e5e79c4f
1 changed files with 1 additions and 1 deletions
|
@ -240,7 +240,7 @@ final class PhabricatorMainMenuView extends AphrontView {
|
||||||
$custom_header = PhabricatorEnv::getEnvConfig('ui.custom-header');
|
$custom_header = PhabricatorEnv::getEnvConfig('ui.custom-header');
|
||||||
if ($custom_header) {
|
if ($custom_header) {
|
||||||
$cache = PhabricatorCaches::getImmutableCache();
|
$cache = PhabricatorCaches::getImmutableCache();
|
||||||
$cache_key_logo = 'ui.custom-header.logo-phid.v1';
|
$cache_key_logo = 'ui.custom-header.logo-phid.v1.'.$custom_header;
|
||||||
$logo_uri = $cache->getKey($cache_key_logo);
|
$logo_uri = $cache->getKey($cache_key_logo);
|
||||||
if (!$logo_uri) {
|
if (!$logo_uri) {
|
||||||
$file = id(new PhabricatorFileQuery())
|
$file = id(new PhabricatorFileQuery())
|
||||||
|
|
Loading…
Reference in a new issue