it = g_ptr_array_index (cache->items_by_id, i);
total_hits += it->st->total_hits;
- if (!(it->type & (SYMBOL_TYPE_PREFILTER|SYMBOL_TYPE_POSTFILTER
- |SYMBOL_TYPE_COMPOSITE|SYMBOL_TYPE_CLASSIFIER))) {
+ if (!(it->type & (SYMBOL_TYPE_PREFILTER|SYMBOL_TYPE_POSTFILTER|SYMBOL_TYPE_COMPOSITE))) {
g_ptr_array_add (ord->d, it);
}
}
for (i = 0; i < (gint)checkpoint->version; i ++) {
item = g_ptr_array_index (checkpoint->order->d, i);
+ if (item->type & SYMBOL_TYPE_CLASSIFIER) {
+ continue;
+ }
+
if (!(item->type & SYMBOL_TYPE_FINE) &&
rspamd_session_events_pending (task->s) == 0) {
if (rspamd_symbols_cache_metric_limit (task, checkpoint)) {