From 5d6f465170392861c0438723fa98efd4732d30ec Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Sun, 4 Jan 2009 13:43:58 -0600 Subject: Cache all front page stats in APC if available 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 Signed-off-by: Loui Chang --- web/template/stats/updates_table.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'web/template') diff --git a/web/template/stats/updates_table.php b/web/template/stats/updates_table.php index e1eb888e..9d1af01c 100644 --- a/web/template/stats/updates_table.php +++ b/web/template/stats/updates_table.php @@ -6,8 +6,7 @@ - - +getIterator() as $row): ?> @@ -34,7 +33,7 @@ endif; - + -- cgit v1.2.3-24-g4f1b