Skip to content

Commit

Permalink
# Disabled timing code in read/list (left behind from message cache d…
Browse files Browse the repository at this point in the history
…evelopment)
  • Loading branch information
mmakaay committed Sep 13, 2006
1 parent 1459958 commit 29c09f9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
16 changes: 8 additions & 8 deletions list.php
Expand Up @@ -20,9 +20,9 @@

include_once("./common.php");
include_once("./include/format_functions.php");
include_once('./include/timing.php');
//include_once('./include/timing.php');

timing_start();
//timing_start();

// set all our common URL's
phorum_build_common_urls();
Expand Down Expand Up @@ -182,15 +182,15 @@
if($rows == null) {


timing_mark('before db');
//timing_mark('before db');
// Get the threads
$rows = array();

// get the thread set started
$rows = phorum_db_get_thread_list($offset);


timing_mark('after db');
//timing_mark('after db');

// redirect if invalid page
if(count($rows) < 1 && $offset > 0){
Expand Down Expand Up @@ -413,7 +413,7 @@
}
}

timing_mark('after preparation');
//timing_mark('after preparation');

if($PHORUM['cache_messages'] && $PHORUM['DATA']['LOGGEDIN']) {
// the stuff needed by user
Expand Down Expand Up @@ -512,7 +512,7 @@
// format messages
$rows = phorum_format_messages($rows);

timing_mark('after formatting');
//timing_mark('after formatting');

// set up the data
$PHORUM["DATA"]["MESSAGES"] = $rows;
Expand Down Expand Up @@ -547,7 +547,7 @@
phorum_hook("before_footer");
include phorum_get_template("footer");

timing_mark('end');
timing_print();
//timing_mark('end');
//timing_print();

?>
12 changes: 6 additions & 6 deletions read.php
Expand Up @@ -23,9 +23,9 @@
include_once("./include/format_functions.php");

// for dev-purposes ..
include_once('./include/timing.php');
//include_once('./include/timing.php');

timing_start();
//timing_start();

// set all our URL's ... we need these earlier
phorum_build_common_urls();
Expand Down Expand Up @@ -191,7 +191,7 @@
}
}

timing_mark("before database");
//timing_mark("before database");

// determining the page if page isn't given and message_id != thread
$page=0;
Expand Down Expand Up @@ -310,7 +310,7 @@
$data[$first_message["message_id"]] = $first_message;
}

timing_mark("after database");
//timing_mark("after database");

if(!empty($data) && isset($data[$thread]) && isset($data[$message_id])) {

Expand Down Expand Up @@ -741,7 +741,7 @@ function phorum_check_moved_message($thread) {
return $ret;
}

timing_mark("end");
timing_print();
//timing_mark("end");
//timing_print();

?>

0 comments on commit 29c09f9

Please sign in to comment.