summaryrefslogtreecommitdiffstats
path: root/wp-includes/wpmu-functions.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2006-07-17 19:06:44 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2006-07-17 19:06:44 +0000
commitf41a1f550824d0a7dc2a209fe4874aa9b1a87c69 (patch)
tree7053d238ad61c3db9d5fa9488fec04e9e6b6f62a /wp-includes/wpmu-functions.php
parenteefcfdd4dd76eb2eadd852e7fa7268f225bfc943 (diff)
downloadwordpress-mu-f41a1f550824d0a7dc2a209fe4874aa9b1a87c69.tar.gz
wordpress-mu-f41a1f550824d0a7dc2a209fe4874aa9b1a87c69.tar.xz
wordpress-mu-f41a1f550824d0a7dc2a209fe4874aa9b1a87c69.zip
Update blog_count once an hour!
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@681 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-includes/wpmu-functions.php')
-rw-r--r--wp-includes/wpmu-functions.php6
1 files changed, 1 insertions, 5 deletions
diff --git a/wp-includes/wpmu-functions.php b/wp-includes/wpmu-functions.php
index f7535ff..b003adc 100644
--- a/wp-includes/wpmu-functions.php
+++ b/wp-includes/wpmu-functions.php
@@ -598,19 +598,15 @@ function get_blog_list( $start = 0, $num = 10, $display = true ) {
function get_blog_count( $id = 0 ) {
global $wpdb;
-/*
if( $id == 0 )
$id = $wpdb->siteid;
$count_ts = get_site_option( "blog_count_ts" );
- if( time() - $count_ts > 86400 ) {
+ if( time() - $count_ts > 3600 ) {
$count = $wpdb->get_var( "SELECT count(*) as c FROM $wpdb->blogs WHERE site_id = '$id' AND spam='0' AND deleted='0' and archived='0'" );
update_site_option( "blog_count", $count );
update_site_option( "blog_count_ts", time() );
- } else {
-
}
-*/
$count = get_site_option( "blog_count" );