You are here

public function FeedImportSQLHashes::updateCommit in Feed Import 8

Commits the update to storage.

Overrides FeedImportHashManager::updateCommit

File

feed_import_base/src/FeedImportSQLHashes.php, line 173

Class

FeedImportSQLHashes
This class implements SQL hash storage

Namespace

Drupal\feed_import_base

Code

public function updateCommit() {
  if ($this->toUpdate) {
    $this
      ->_update($this->updateIds, $this->ttl ? $this->ttl + time() : 0);
    $this->toUpdate = 0;
  }
  if ($this->toProtect) {
    $this
      ->_update($this->protectIds, static::MARK_PROTECTED);
    $this->toProtect = 0;
  }
}