$statement = WCF::getDB()->prepareStatement($sql);
$flushCache = false;
+ WCF::getDB()->beginTransaction();
foreach ($options as $id => $value) {
if ($id == $row['optionID'] && ($value != $row['optionValue'] || $value != CACHE_SOURCE_TYPE)) {
$flushCache = true;
$id
));
}
+ WCF::getDB()->commitTransaction();
// force a cache reset if options were changed
self::resetCache();
VALUES (?, ?, ?)";
$statement = WCF::getDB()->prepareStatement($sql);
+ WCF::getDB()->beginTransaction();
foreach ($statementParameters as $parameters) {
$statement->execute(array(
$parameters['spiderIdentifier'],
$parameters['spiderURL']
));
}
+ WCF::getDB()->commitTransaction();
}
// clear spider cache