function recommender_updated_purge in Recommender API 5
Same name and namespace in other branches
- 6 recommender.module \recommender_updated_purge()
File
- ./
recommender.module, line 548 - Providing generic recommender system algorithms.
Code
function recommender_updated_purge($app_name, $op = 'outdated') {
$app_id = recommender_get_app_id($app_name);
$op_sql = $op == 'outdated' ? "AND status=-100" : '';
db_query("DELETE FROM {recommender_updated_queue} WHERE app_id=%d {$op_sql}", $app_id);
}