public function FeedImportSQLHashes::update in Feed Import 7.3
Updates hashes.
Parameters
integer $id: Hash id
int $expire: Time to live
Overrides FeedImportHashManager::update
File
- feed_import_base/
inc/ feed_import.inc, line 1902 - This file contains Feed Import helpers.
Class
- FeedImportSQLHashes
- This class implements SQL hash storage
Code
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;
}
}