[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Librefm-commits] [1794] increase cache time
From: |
Matt Lee |
Subject: |
[Librefm-commits] [1794] increase cache time |
Date: |
Sun, 24 May 2009 16:47:10 +0000 |
Revision: 1794
http://svn.sv.gnu.org/viewvc/?view=rev&root=librefm&revision=1794
Author: mattl
Date: 2009-05-24 16:47:10 +0000 (Sun, 24 May 2009)
Log Message:
-----------
increase cache time
Modified Paths:
--------------
trunk/gnukebox/stats.php
Modified: trunk/gnukebox/stats.php
===================================================================
--- trunk/gnukebox/stats.php 2009-05-24 16:46:09 UTC (rev 1793)
+++ trunk/gnukebox/stats.php 2009-05-24 16:47:10 UTC (rev 1794)
@@ -36,19 +36,19 @@
<?php
$adodb->SetFetchMode(ADODB_FETCH_ASSOC);
- $total = $adodb->CacheGetOne(60, 'SELECT COUNT(*) as
total from Scrobbles');
+ $total = $adodb->CacheGetOne(500, 'SELECT COUNT(*) as
total from Scrobbles');
if(!$total) {
die("sql error");
}
echo "<p>" . stripslashes($total) . " listens.</p>";
- $total = $adodb->CacheGetOne(120, 'SELECT COUNT(*) as
total from Track');
+ $total = $adodb->CacheGetOne(500, 'SELECT COUNT(*) as
total from Track');
if(!$total) {
die("sql error");
}
echo "<p>" . stripslashes($total) . " unique
tracks.</p>";
- $total = $adodb->CacheGetOne(720, 'SELECT COUNT(*) as
total from Users');
+ $total = $adodb->CacheGetOne(500, 'SELECT COUNT(*) as
total from Users');
if(!$total) {
die("sql error");
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Librefm-commits] [1794] increase cache time,
Matt Lee <=