File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -122,10 +122,13 @@ public function cacheContainer(
122122
123123 $ hasContainerFresh = $ containerConfigCache ->isFresh ();
124124
125- // Если /bitrix/.settings.php изменился - пересобрать дамп контейнера.
126- if (!$ this ->isConfigFresh ('/bitrix/.settings.php ' )) {
127- $ this ->createConfigMeta ('/bitrix/.settings.php ' );
128- $ hasContainerFresh = false ;
125+ $ configsBag = ['/bitrix/.settings.php ' , '/bitrix/.settings_extra.php ' ];
126+ foreach ($ configsBag as $ configFile ) {
127+ // Если конфиг-файл изменился - пересобрать дамп контейнера.
128+ if (file_exists ($ this ->projectRoot . $ configFile ) && !$ this ->isConfigFresh ($ configFile )) {
129+ $ this ->createConfigMeta ($ configFile );
130+ $ hasContainerFresh = false ;
131+ }
129132 }
130133
131134 if (!$ hasContainerFresh ) {
You can’t perform that action at this time.
0 commit comments