evazion
8404064854
related_tag_calculator.rb: fix memcache lookup in inner loop.
...
Remove the category constraint option from RelatedTagCalculator.calculate_from_posts.
It slows things down and isn't used.
This method is used to calculate the related tags sidebar during
searches for single metatags. Using Tag.category_for in the inner loop
caused a memcache call on every iteration. At 100 posts per page and
20-30 tags per post, this led to up to 2000-3000 total memcache calls,
which significantly slowed pageloads.
2017-04-23 17:10:20 -05:00
..
2017-04-15 23:14:41 -05:00
2015-08-18 17:40:53 -07:00
2014-04-16 17:43:34 -07:00
2017-04-16 16:48:36 -05:00
2017-04-16 16:48:36 -05:00
2017-04-20 15:50:22 -07:00
2017-02-04 17:18:51 -06:00
2014-07-23 15:15:47 -07:00
2016-09-18 14:13:11 +05:00
2017-04-18 17:07:12 -07:00
2017-04-16 16:48:36 -05:00
2017-04-19 17:56:26 -05:00
2017-03-21 14:40:46 -07:00
2017-04-19 14:04:36 -07:00
2017-04-16 16:48:36 -05:00
2014-11-07 15:03:00 -08:00
2017-04-16 16:48:36 -05:00
2016-09-10 10:41:27 +05:00
2016-11-01 13:44:36 -07:00
2017-04-16 16:48:36 -05:00
2017-02-25 23:05:44 -06:00
2015-02-09 19:10:47 -08:00
2017-04-16 16:48:36 -05:00
2017-04-16 16:48:36 -05:00
2017-04-16 16:48:36 -05:00
2014-10-22 17:22:36 -07:00
2017-04-16 16:48:36 -05:00
2017-04-16 16:48:36 -05:00
2017-04-03 17:18:32 -05:00
2017-04-16 16:48:36 -05:00
2017-04-16 16:48:36 -05:00
2017-04-04 12:39:17 -07:00
2017-04-16 16:48:36 -05:00
2017-04-16 16:48:36 -05:00
2017-04-16 16:48:36 -05:00
2017-04-16 16:48:36 -05:00
2017-04-16 16:48:36 -05:00
2017-04-23 17:10:20 -05:00
2017-04-16 16:48:36 -05:00
2017-04-21 22:48:52 -05:00
2017-04-16 16:48:36 -05:00
2017-04-16 16:48:36 -05:00
2017-04-16 16:48:36 -05:00
2017-04-16 16:48:36 -05:00
2017-04-16 16:48:36 -05:00
2017-04-21 22:48:52 -05:00
2017-04-16 16:48:36 -05:00
2017-01-09 17:31:14 -08:00
2017-04-16 16:48:36 -05:00
2017-02-04 17:18:51 -06:00
2017-04-16 16:48:36 -05:00
2017-04-04 12:39:17 -07:00
2016-09-28 11:38:34 -07:00
2017-04-16 16:48:36 -05:00
2017-04-16 16:48:36 -05:00