fix for metatag post counts

This commit is contained in:
albert
2013-02-19 12:57:41 -05:00
parent a63816f78c
commit dbb0808eaf
2 changed files with 3 additions and 2 deletions

View File

@@ -570,7 +570,7 @@ class Post < ActiveRecord::Base
def get_count_from_cache(tags)
count = Cache.get(count_cache_key(tags))
if count.nil?
if count.nil? && tags.to_s !~ /^(?:#{Tag::METATAGS}):/
count = select_value_sql("SELECT post_count FROM tags WHERE name = ?", tags.to_s)
end