public function FeedImportSQLHashes::update in Feed Import 8
Updates hashes.
Parameters
integer $id: Hash id
int $expire: Time to live
Overrides FeedImportHashManager::update
File
- feed_import_base/
src/ FeedImportSQLHashes.php, line 147
Class
- FeedImportSQLHashes
- This class implements SQL hash storage
Namespace
Drupal\feed_import_baseCode
public function update($id) {
$this->updateIds[] = $id;
if (++$this->toUpdate == $this->updateChunkSize) {
$this
->_update($this->updateIds, $this->ttl ? $this->ttl + time() : 0);
$this->toUpdate = 0;
}
}