[gnome-web-www] previous-donors: Rename cache lookup name to reflect that it's a full file
- From: Tobias Mueller <tobiasmue src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-web-www] previous-donors: Rename cache lookup name to reflect that it's a full file
- Date: Fri, 25 Jan 2013 18:43:22 +0000 (UTC)
commit 1d2c986f48c51d0f6455a59f4556ab7d35a14b89
Author: Tobias Mueller <tobiasmue gnome org>
Date: Fri Jan 25 19:42:35 2013 +0100
previous-donors: Rename cache lookup name to reflect that it's a full file
Also set the caching time to a minute to be able to develop more sanely.
theme/page-previous-donors.php | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/theme/page-previous-donors.php b/theme/page-previous-donors.php
index 167fc90..11fed2d 100644
--- a/theme/page-previous-donors.php
+++ b/theme/page-previous-donors.php
@@ -21,13 +21,13 @@ foreach (array(
$donors[$year] = array();
foreach ($fname_dispname_map as $level => $disp_name) {
- $cache_name = "fog_donors_{$year}_{$level}";
+ $cache_name = "fog_donors_file_{$year}_{$level}";
if (false === ($donors_file = get_transient($cache_name))) {
$url = "http://people.gnome.org/~tobiasmue/fog/{$year}-{$level}.txt";
$donors_file = file_get_contents($url);
// keeps a 24-hour cache until another HTTP request
- set_transient($cache_name, $donors_file, 60*60*24);
+ set_transient($cache_name, $donors_file, 60);
}
$donors[$year][$level] = array();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]