X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fclasses%2Fmain%2Fdatabase%2Fbackend%2Fclass_CachedLocalFileDatabase.php;h=935cf27fe1a53ea87c033e8bd3ec4a9f67508bfe;hb=b1683de32141e80fb17d5ff1a6f460186e22d961;hp=a81dd3cb3555143dcd3c367e7b5e6a0fbec8b3c3;hpb=27ca60ed584841d68cdbf6a43356a1522f02a513;p=core.git diff --git a/inc/classes/main/database/backend/class_CachedLocalFileDatabase.php b/inc/classes/main/database/backend/class_CachedLocalFileDatabase.php index a81dd3cb..935cf27f 100644 --- a/inc/classes/main/database/backend/class_CachedLocalFileDatabase.php +++ b/inc/classes/main/database/backend/class_CachedLocalFileDatabase.php @@ -228,7 +228,7 @@ class CachedLocalFileDatabase extends BaseDatabaseBackend implements DatabaseBac // Get the file contents try { $infoArray = $this->getDataArrayFromFile($fqfn); - } catch (FileIoException $e) { + } catch (FileNotFoundException $e) { // Not found, so ignore it here } @@ -279,9 +279,6 @@ class CachedLocalFileDatabase extends BaseDatabaseBackend implements DatabaseBac * @return void */ private function updateTableInfoFile (StoreableCriteria $dataSetInstance) { - // "Cache" table name - $tableName = $dataSetInstance->getTableName(); - // Create FQFN for creating the table information file $fqfn = $this->generateFqfnFromDataSet($dataSetInstance, 'info'); @@ -290,7 +287,7 @@ class CachedLocalFileDatabase extends BaseDatabaseBackend implements DatabaseBac $this->tableInfo[$tableName]['last_updated'] = time(); // Write the data to the file - $this->writeDataArrayToFqfn($fqfn, $this->tableInfo[$tableName]); + $this->writeDataArrayToFqfn($fqfn, $this->tableInfo[$dataSetInstance->getTableName()]); } /**