diff --git a/library/Director/Import/Sync.php b/library/Director/Import/Sync.php index b81693b5..d7b518a6 100644 --- a/library/Director/Import/Sync.php +++ b/library/Director/Import/Sync.php @@ -5,6 +5,7 @@ namespace Icinga\Module\Director\Import; use Exception; use Icinga\Data\Filter\Filter; use Icinga\Module\Director\Db; +use Icinga\Module\Director\Db\Cache\PrefetchCache; use Icinga\Module\Director\Objects\IcingaObject; use Icinga\Module\Director\Objects\ImportSource; use Icinga\Module\Director\Objects\IcingaService; @@ -481,6 +482,8 @@ class Sync return $this->objects; } + PrefetchCache::initialize($this->db); + $this->raiseLimits() ->startMeasurements() ->fetchSyncProperties()