Improved plugins hash when there are changes

This commit is contained in:
the-djmaze 2022-11-29 15:52:00 +01:00
parent 200e00e2d6
commit 721edc5e57

View file

@ -169,9 +169,13 @@ class Manager
public function Hash() : string
{
return \md5(\array_reduce($this->aPlugins, function($sResult, $oPlugin){
return $sResult . "|{$oPlugin->Hash()}";
}, APP_VERSION));
return \md5(
\array_reduce($this->aPlugins, function($sResult, $oPlugin){
return $sResult . "|{$oPlugin->Hash()}";
}, APP_VERSION)
.implode('',$this->aJs[1]).implode('',$this->aJs[0])
.implode('',$this->aCss[1]).implode('',$this->aCss[0])
);
}
public function HaveJs(bool $bAdminScope = false) : bool