stable

Clone or download

Read-only

Cache the customized logo detection

We should not compare two different image files for each request and each user. When the site administrators upload an organization_logo.png in /var/lib/tuleap/images/ then they must run `tuleap -c` to clear the cache. The logo then switch from the official to the customized one in the interface. Part of story #16210 Remove navigation bar Change-Id: I0635d2bcf263e41edc39c7f4c4a0c06aa0f7aeef

Modified Files

Name
M src/common/include/SiteCache.php +7 −0 Go to diff View file
A src/common/layout/Logo/CachedCustomizedLogoDetector.php +111 −0 Go to diff View file
M src/common/layout/Logo/CustomizedLogoDetector.php +2 −2 Go to diff View file
A src/common/layout/Logo/IDetectIfLogoIsCustomized.php +28 −0 Go to diff View file
M src/themes/BurningParrot/include/BurningParrotTheme.php +5 −1 Go to diff View file
M src/themes/BurningParrot/include/HeaderPresenterBuilder.php +3 −3 Go to diff View file
M src/www/themes/FlamingParrot/FlamingParrot_Theme.class.php +5 −2 Go to diff View file
A tests/unit/common/layout/Logo/CachedCustomizedLogoDetectorTest.php +176 −0 Go to diff View file
M tests/unit/common/layout/Logo/CustomizedLogoDetectorTest.php +3 −3 Go to diff View file