@@ -196,26 +196,6 @@ public static function configureAndPrepareSystem(): array
196196 return $ resultData ;
197197 }
198198
199- InstallerLogger::addLogEntry ("Started clearing cache " );
200- {
201- $ isCacheCleared = ShellBinConsoleService::clearCache ();
202- $ resultData [self ::CONFIGURE_PREPARE_CLEAR_CACHE ] = $ isCacheCleared ;
203- }
204- InstallerLogger::addLogEntry ("Finished clearing cache " , ["status " => $ isCacheCleared ]);
205- if (!$ isCacheCleared ){
206- return $ resultData ;
207- }
208-
209- InstallerLogger::addLogEntry ("Started building cache " );
210- {
211- $ isCacheBuilt = ShellBinConsoleService::buildCache ();
212- $ resultData [self ::CONFIGURE_PREPARE_BUILD_CACHE ] = $ isCacheBuilt ;
213- }
214- InstallerLogger::addLogEntry ("Finished building cache " , ["status " => $ isCacheBuilt ]);
215- if (!$ isCacheBuilt ){
216- return $ resultData ;
217- }
218-
219199 InstallerLogger::addLogEntry ("Started generating encryption key " );
220200 {
221201 $ generatedEncryptionKey = ShellBinConsoleService::generateEncryptionKey ();
@@ -236,6 +216,26 @@ public static function configureAndPrepareSystem(): array
236216 return $ resultData ;
237217 }
238218
219+ InstallerLogger::addLogEntry ("Started clearing cache " );
220+ {
221+ $ isCacheCleared = ShellBinConsoleService::clearCache ();
222+ $ resultData [self ::CONFIGURE_PREPARE_CLEAR_CACHE ] = $ isCacheCleared ;
223+ }
224+ InstallerLogger::addLogEntry ("Finished clearing cache " , ["status " => $ isCacheCleared ]);
225+ if (!$ isCacheCleared ){
226+ return $ resultData ;
227+ }
228+
229+ InstallerLogger::addLogEntry ("Started building cache " );
230+ {
231+ $ isCacheBuilt = ShellBinConsoleService::buildCache ();
232+ $ resultData [self ::CONFIGURE_PREPARE_BUILD_CACHE ] = $ isCacheBuilt ;
233+ }
234+ InstallerLogger::addLogEntry ("Finished building cache " , ["status " => $ isCacheBuilt ]);
235+ if (!$ isCacheBuilt ){
236+ return $ resultData ;
237+ }
238+
239239 InstallerLogger::addLogEntry ("Now marking installation as finished " );
240240 {
241241 self ::setEnvKeyAppIsInstalled ();
0 commit comments