|
@@ -1007,6 +1007,15 @@ Router::getRoute("UrlAction_BiAuditGenerate")->' . $function . ';
|
|
|
if (!file_exists($tasksDirLocation)) mkdir($tasksDirLocation, 0755, true);
|
|
if (!file_exists($tasksDirLocation)) mkdir($tasksDirLocation, 0755, true);
|
|
|
if (!file_exists($tasksDirLocation)) throw new Exception('Error during creating temporary directory.');
|
|
if (!file_exists($tasksDirLocation)) throw new Exception('Error during creating temporary directory.');
|
|
|
|
|
|
|
|
|
|
+ ### Wymuszenie częsciowego odświezenia cache
|
|
|
|
|
+ $query = "select ID from BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA where BI_analiza_reloadCache not in ('Full', 'Part') and FILE_STATUS = 'TO_GENERATE'";
|
|
|
|
|
+ $sqlArr = [
|
|
|
|
|
+ 'BI_analiza_reloadCache' => 'Part',
|
|
|
|
|
+ 'FILE_STATUS_info' => 'Automatycznie wymuszono częściowe odświeżenie cache',
|
|
|
|
|
+ ];
|
|
|
|
|
+ foreach ($result as $row) {
|
|
|
|
|
+ DB::getDB()->UPDATE_OBJ('BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA', array_merge(['ID' => $row['ID']], $sqlArr));
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
### Sprawdzenie czy któryś rekord wymaga odświeżenia cache
|
|
### Sprawdzenie czy któryś rekord wymaga odświeżenia cache
|
|
|
$doGenerate = true;
|
|
$doGenerate = true;
|