|
@@ 225-230 (lines=6) @@
|
| 222 |
|
|
| 223 |
|
// Fetch tableRelationFields and save them in cache if not there yet |
| 224 |
|
$cacheId = static::$cachePrefixTableRelationFields . $tableName; |
| 225 |
|
if (!$this->useRuntimeCache || !$this->runtimeCache->has($cacheId)) { |
| 226 |
|
$tableRelationFields = $this->fetchTableRelationFields($tableName); |
| 227 |
|
$this->runtimeCache->set($cacheId, $tableRelationFields); |
| 228 |
|
} else { |
| 229 |
|
$tableRelationFields = $this->runtimeCache->get($cacheId); |
| 230 |
|
} |
| 231 |
|
|
| 232 |
|
$connectionPool = GeneralUtility::makeInstance(ConnectionPool::class); |
| 233 |
|
$connection = $connectionPool->getConnectionForTable('sys_refindex'); |
|
@@ 1501-1508 (lines=8) @@
|
| 1498 |
|
|
| 1499 |
|
// Fetch fields of the table which might contain relations |
| 1500 |
|
$cacheId = static::$cachePrefixTableRelationFields . $tableName; |
| 1501 |
|
if (!$this->useRuntimeCache || !$this->runtimeCache->has($cacheId)) { |
| 1502 |
|
$tableRelationFields = $this->fetchTableRelationFields($tableName); |
| 1503 |
|
if ($this->useRuntimeCache) { |
| 1504 |
|
$this->runtimeCache->set($cacheId, $tableRelationFields); |
| 1505 |
|
} |
| 1506 |
|
} else { |
| 1507 |
|
$tableRelationFields = $this->runtimeCache->get($cacheId); |
| 1508 |
|
} |
| 1509 |
|
|
| 1510 |
|
// Return if there are no fields which could contain relations |
| 1511 |
|
if ($tableRelationFields === '') { |