|
|
@@ -1835,16 +1835,17 @@ SQL;
|
|
|
$tasksDirLocation = $powiazaniaDirLocation . "/.tasks";
|
|
|
$reloadCachePidFile = $tasksDirLocation . "/reloadCache.pid";
|
|
|
$reloadCacheResultFile = $tasksDirLocation . "/reloadCache.result";
|
|
|
- file_put_contents($reloadCachePidFile, getmypid());
|
|
|
+ if ($full) file_put_contents($reloadCachePidFile, getmypid());
|
|
|
try {
|
|
|
//self::importPracownicy(); //TODO
|
|
|
self::reloadCache_reTeryt($full);
|
|
|
self::reloadCache_parseUmowy($full);
|
|
|
self::reloadCache_updateAll($full, $onlyBase);
|
|
|
- file_put_contents($reloadCacheResultFile, "ok");
|
|
|
+ if ($full) file_put_contents($reloadCacheResultFile, "ok");
|
|
|
} catch (Exception $e) {
|
|
|
var_dump($e);
|
|
|
- file_put_contents($reloadCacheResultFile, $e->getMessage());
|
|
|
+ if ($full) file_put_contents($reloadCacheResultFile, $e->getMessage());
|
|
|
+ else throw new Exception($e->getMessage());
|
|
|
}
|
|
|
}
|
|
|
|