View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0020121 | mantisbt | bugtracker | public | 2015-09-17 13:58 | 2016-08-28 01:12 |
Reporter | cproensa | Assigned To | cproensa | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 1.3.0-beta.3 | ||||
Target Version | 1.3.1 | Fixed in Version | 1.3.1 | ||
Summary | 0020121: bug_cache_database_result does not update bugnote statistics | ||||
Description | function bug_cache_database_result in bug_api.php when it is called to store bugnote statistics (array $p_stats) This may not happen in standard code, but trying some modifications i have encountered this issue: example: The issue would cause a repeated db query whenever bugnote stats are used (eg, for each bug in view_all_bug pages), because they cant be loaded from cache | ||||
Additional Information |
| ||||
Tags | No tags attached. | ||||
MantisBT: master-1.3.x 6d6cd558 2015-09-17 10:03 Committer: dregad Details Diff |
Force storing empty bugnote statistics (1) When a bug has no bugnotes, or visible ones, force storing a 'false' value as bugnote stats in bug cache, to avoid querying the database again later. (2) Additionally, when the function bug_cache_database_result is called with a stats array parameter, and the bug has already been cached, force the creation of the stats index. Previously this wasn't possible if the bug had already been cached without the bugnote stats. Fixes 0020121 |
Affected Issues 0020121 |
|
mod - core/bug_api.php | Diff File | ||
mod - core/filter_api.php | Diff File |