You are here

function recommender_updated_purge in Recommender API 6

Same name and namespace in other branches
  1. 5 recommender.module \recommender_updated_purge()

File

./recommender.module, line 526
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);
}