more intelligent queuing of async jobs

This commit is contained in:
albert
2013-03-03 01:12:31 -05:00
parent b55d40e70a
commit f0b29fc3ba
8 changed files with 23 additions and 25 deletions

View File

@@ -622,6 +622,8 @@ class Post < ActiveRecord::Base
if tags.blank? && Danbooru.config.blank_tag_search_fast_count
count = Danbooru.config.blank_tag_search_fast_count
elsif tags =~ /^rating:\S+$/
count = Danbooru.config.blank_tag_search_fast_count
elsif tags =~ /(?:#{Tag::METATAGS}):/
count = fast_count_search(tags)
else