| 7 update.authorize.inc | _update_authorize_clear_update_status() |
| 8 update.authorize.inc | _update_authorize_clear_update_status() |
Private helper function to clear cached available update status data.
Since this function is run at such a low bootstrap level, update.module is not loaded. So, we can't just call _update_cache_clear(). However, the database is bootstrapped, so we can do a query ourselves to clear out what we want to clear.
Note that we do not want to just truncate the table, since that would remove items related to currently pending fetch attempts.
See also
update_authorize_update_batch_finished()
1 call to _update_authorize_clear_update_status()
File
- modules/
update/ update.authorize.inc, line 306 - Callbacks and related functions invoked by authorize.php to update projects on the Drupal site. We use the Batch API to actually update each individual project on the site. All of the code in this file is run at a low bootstrap level (modules are not…
Code
function _update_authorize_clear_update_status() {
$query = db_delete('cache_update');
$query->condition(
db_or()
->condition('cid', 'update_project_%', 'LIKE')
->condition('cid', 'available_releases::%', 'LIKE')
);
$query->execute();
}
Login or register to post comments