summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorPawel Chojnacki <pawel@chojnacki.ws>2017-02-23 12:36:23 +0100
committerPawel Chojnacki <pawel@chojnacki.ws>2017-02-23 12:36:23 +0100
commit2f0599b6c851c208b5332f37509df0ada52e6d6a (patch)
tree5ea1241bf48a9b8cf41d65b4fd25317ac4636e93 /config
parent29b59456d04a6e3febb70048b8b7f4b4082b8e05 (diff)
downloadgitlab-ce-2f0599b6c851c208b5332f37509df0ada52e6d6a.tar.gz
Disable unused tags count cache for Projects, Builds and Runners
+ remove complete leftover when Issues were tagged using acts_as_taggable
Diffstat (limited to 'config')
-rw-r--r--config/initializers/acts_as_taggable.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/config/initializers/acts_as_taggable.rb b/config/initializers/acts_as_taggable.rb
new file mode 100644
index 00000000000..c564c0cab11
--- /dev/null
+++ b/config/initializers/acts_as_taggable.rb
@@ -0,0 +1,5 @@
+ActsAsTaggableOn.strict_case_match = true
+
+# tags_counter enables caching count of tags which results in an update whenever a tag is added or removed
+# since the count is not used anywhere its better performance wise to disable this cache
+ActsAsTaggableOn.tags_counter = false