Skip to content

Commit

Permalink
Fix 9001: memory exhausted on changelog.
Browse files Browse the repository at this point in the history
The bug data cache is dropped at each iteration so the
memory consumption is lowered


git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@5190 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
giallu committed Apr 21, 2008
1 parent 80ba511 commit 189f54d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions core/custom_function_api.php
Expand Up @@ -58,6 +58,9 @@ function custom_function_default_changelog_print_issue( $p_issue_id, $p_issue_le
}

echo ' - ', get_enum_element( 'status', $t_bug->status ), '.<br />';

// do not cache bug data to save memory
bug_clear_cache( $p_issue_id );
}

# --------------------
Expand Down Expand Up @@ -94,6 +97,9 @@ function custom_function_default_roadmap_print_issue( $p_issue_id, $p_issue_leve
}

echo ' - ', get_enum_element( 'status', $t_bug->status ), $t_strike_end, '.<br />';

// do not cache bug data to save memory
bug_clear_cache( $p_issue_id );
}

# --------------------
Expand Down

0 comments on commit 189f54d

Please sign in to comment.