summaryrefslogtreecommitdiffstats
path: root/web/lib/stats.inc
AgeCommit message (Collapse)AuthorFilesLines
2009-08-26remove communitySergej Pupykin1-8/+0
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-01-25APC work follow-upDan McGee1-21/+22
I managed to send an outdated patch to the mailing list that got applied, so some of these changes never made it in. A little more cleanup and a little more caching, and also increase the default time to 600 seconds (10 minutes). Signed-off-by: Dan McGee <dan@archlinux.org> Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-01-08Fix stats functionality when APC is unavailable.Loui Chang1-3/+11
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-01-08Cache all front page stats in APC if availableDan McGee1-17/+36
Use the APC cache to store all of the counts and the recently updated package list in a cache, which cuts down on the number of database queries needed. If the data isn't perfectly up to date we will survive. This version of the patch will also cache the relevant counts for individual logged-in users and is more careful about checking whether the value actually exists in the cache by using the status reference to apc_fetch(). Signed-off-by: Dan McGee <dan@archlinux.org> Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2008-10-06Show developer-TUs their total community packages.Loui Chang1-1/+1
This closes: FS#11561 - Devs in AUR can't see their packages in Community Thanks to Hugo Doria for the original patch. Signed-off-by: Loui Chang <louipc.ist@gmail.com> Signed-off-by: Callan Barrett <wizzomafizzo@gmail.com>
2008-07-07Move code out of index.phpLoui Chang1-0/+72
Move database queries to functions and html to templates. Signed-off-by: Loui Chang <louipc.ist@gmail.com>