Recent Topics

1 Aug 22, 2006 10:28    

Since updating to 1.6, 1.8 and 1.81 I find that the stats page is as slow as a wet week to load and wonder if there are any tweaks to speed it up a bit.

Example: can the PHP/SWF Charts be disabled? They look groovy but do they add to the overhead?

Any tips appreciated.

2 Aug 23, 2006 11:41

You could try deleting the code that produces the charts fom the various inc/VIEW/sessions/ files and seeing what difference it makes.

example : _stats_referers.view.php :

/ Display results:
$Results->display();

?>
<h3><?php echo T_('Top referers') ?>:</h3>

<?php
// TODO: re-use $Results from above
global $res_stats, $row_stats;
refererList( 30, 'global', 0, 0, "'referer'", 'dom_name', $blog, true );
if( count( $res_stats ) )
{



// delete everything from this point



	$chart [ 'chart_data' ][ 0 ][ 0 ] = "";
	$chart [ 'chart_data' ][ 1 ][ 0 ] = 'Top referers'; // Needs UTF-8



......


	//pre_dump( $chart );
	echo '<div class="center">';
	DrawChart( $chart );
	echo '</div>';


// to here

?>
<table class="grouped" cellspacing="0">
	<?php
	$count = 0;
	foreach( $res_stats as $row_stats )

¥

3 Aug 23, 2006 23:42

Thanks , but I'm a bit puzzled ( easy to do )
In my INC folder the only reference to STATS is in
inc/CONTROL/sessions/stats.php

My inc/VIEW folder doesn't even have a "sessions" folder..
????

4 Aug 24, 2006 07:24

lol, ooops, that'll teach me to check that I'm in my 1.8 folder and not my dev folder before replying :p

In 1.8(.1) the file is the one in CONTROL, and there are multiple places where the charts are created (depending on which stats screen you're on).

¥

5 Aug 24, 2006 08:52

Will have a play... I totally blanked out all stats at the first attempt :)

6 Aug 24, 2006 09:13

I bet that made them faster :p

¥


Form is loading...