diff --git a/app/logical/api_cache_generator.rb b/app/logical/api_cache_generator.rb index fc98233e3..463d57a3a 100644 --- a/app/logical/api_cache_generator.rb +++ b/app/logical/api_cache_generator.rb @@ -3,6 +3,7 @@ class ApiCacheGenerator File.open("#{Rails.root}/public/cache/tags.json", "w") do |f| f.print("[") Tag.find_each do |tag| + next unless tag.post_count > 0 hash = { "name" => tag.name, "id" => tag.id,