From: <jfi...@us...> - 2003-02-15 07:49:04
|
Update of /cvsroot/mantisbt/mantisbt/core In directory sc8-pr-cvs1:/tmp/cvs-serv25821/core Modified Files: bug_api.php project_api.php Log Message: * core/bug_api.php (bug_cache_row): cache the fact that the bug doesn't exist (bug_text_cache_row): cache the fact that the bug text doesn't exist * core/project_api.php (project_cache_row): cache the fact that the project doesn't exist Index: bug_api.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/core/bug_api.php,v retrieving revision 1.33 retrieving revision 1.34 diff -u -d -r1.33 -r1.34 --- bug_api.php 10 Feb 2003 23:48:28 -0000 1.33 +++ bug_api.php 15 Feb 2003 07:49:00 -0000 1.34 @@ -91,6 +91,8 @@ $result = db_query( $query ); if ( 0 == db_num_rows( $result ) ) { + $g_cache_bug[$c_bug_id] = false; + if ( $p_trigger_errors ) { trigger_error( ERROR_BUG_NOT_FOUND, ERROR ); } else { @@ -144,6 +146,8 @@ $result = db_query( $query ); if ( 0 == db_num_rows( $result ) ) { + $g_cache_bug_text[$c_bug_id] = false; + if ( $p_trigger_errors ) { trigger_error( ERROR_BUG_NOT_FOUND, ERROR ); } else { Index: project_api.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/core/project_api.php,v retrieving revision 1.31 retrieving revision 1.32 diff -u -d -r1.31 -r1.32 --- project_api.php 11 Feb 2003 08:59:33 -0000 1.31 +++ project_api.php 15 Feb 2003 07:49:00 -0000 1.32 @@ -51,6 +51,8 @@ $result = db_query( $query ); if ( 0 == db_num_rows( $result ) ) { + $g_cache_project[(int)$p_project_id] = false; + if ( $p_trigger_errors ) { trigger_error( ERROR_PROJECT_NOT_FOUND, ERROR ); } else { |