]> git.mxchange.org Git - quix0rs-gnu-social.git/commit
Add time-based cutoffs for public tag cloud, favorited lists to speed up those queries.
authorBrion Vibber <brion@pobox.com>
Thu, 4 Feb 2010 19:06:01 +0000 (11:06 -0800)
committerBrion Vibber <brion@pobox.com>
Thu, 4 Feb 2010 19:06:01 +0000 (11:06 -0800)
commit5a1cbdc6f1e32be7b8430924a1125422d8457584
tree28147de9aef4dd9fcec909e2ca0a13cc7d204cff
parent7a7e2162dd7eed59e60d9360d8692abc111d940c
Add time-based cutoffs for public tag cloud, favorited lists to speed up those queries.
Defaulting to only looking at last 90 days of activity, can be adjusted up or down.

$config['tag']['cutoff'] = 86400 * 90;
$config['popular']['cutoff'] = 86400 * 90;

Per-user and per-group tag clouds do not use the cutoff (and it doesn't help with indexing on them).
actions/favorited.php
actions/publictagcloud.php
lib/default.php
lib/grouptagcloudsection.php
lib/personaltagcloudsection.php
lib/popularnoticesection.php