@@ -91,7 +91,7 @@ public function run($argument): void {
9191
9292 $ this ->storageId = $ argument ['storageId ' ];
9393 $ this ->rootId = $ argument ['rootId ' ];
94- if ($ this ->appConfig ->getAppValueString ('auto_indexing ' , 'true ' , true ) === 'false ' ) {
94+ if ($ this ->appConfig ->getAppValueString ('auto_indexing ' , 'true ' , lazy: true ) === 'false ' ) {
9595 return ;
9696 }
9797 $ this ->diagnosticService ->sendJobTrigger (static ::class, $ this ->getId ());
@@ -149,19 +149,19 @@ public function run($argument): void {
149149 }
150150
151151 protected function getBatchSize (): int {
152- return $ this ->appConfig ->getAppValueInt ('indexing_batch_size ' , self ::DEFAULT_BATCH_SIZE , true );
152+ return $ this ->appConfig ->getAppValueInt ('indexing_batch_size ' , self ::DEFAULT_BATCH_SIZE , lazy: true );
153153 }
154154
155155 protected function getMaxIndexingTime (): int {
156- return $ this ->appConfig ->getAppValueInt ('indexing_max_time ' , self ::DEFAULT_MAX_INDEXING_TIME , true );
156+ return $ this ->appConfig ->getAppValueInt ('indexing_max_time ' , self ::DEFAULT_MAX_INDEXING_TIME , lazy: true );
157157 }
158158
159159 protected function getJobInterval (): int {
160- return $ this ->appConfig ->getAppValueInt ('indexing_job_interval ' , self ::DEFAULT_JOB_INTERVAL , true );
160+ return $ this ->appConfig ->getAppValueInt ('indexing_job_interval ' , self ::DEFAULT_JOB_INTERVAL , lazy: true );
161161 }
162162
163163 protected function getMaxSize (): float {
164- return (float )$ this ->appConfig ->getAppValueInt ('indexing_max_size ' , Application::CC_MAX_SIZE , true );
164+ return (float )$ this ->appConfig ->getAppValueInt ('indexing_max_size ' , Application::CC_MAX_SIZE , lazy: true );
165165 }
166166
167167 /**
@@ -321,7 +321,7 @@ protected function index(array $files): void {
321321 }
322322
323323 private function setInitialIndexCompletion (): void {
324- if ($ this ->appConfig ->getAppValueInt ('last_indexed_time ' , 0 , true ) !== 0 ) {
324+ if ($ this ->appConfig ->getAppValueInt ('last_indexed_time ' , 0 , lazy: true ) !== 0 ) {
325325 return ;
326326 }
327327 try {
@@ -345,7 +345,7 @@ private function setInitialIndexCompletion(): void {
345345 }
346346
347347 $ this ->logger ->info ('Initial index completion detected, setting last indexed time ' );
348- $ this ->appConfig ->setAppValueInt ('last_indexed_time ' , $ this ->timeFactory ->getTime (), true );
348+ $ this ->appConfig ->setAppValueInt ('last_indexed_time ' , $ this ->timeFactory ->getTime (), lazy: true );
349349 }
350350
351351 /**
0 commit comments