View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0027217 | mantisbt | bugtracker | public | 2020-09-02 12:33 | 2021-03-07 18:29 |
Reporter | dregad | Assigned To | dregad | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Target Version | 2.25.0 | Fixed in Version | 2.25.0 | ||
Summary | 0027217: bugnote_clear_cache() does not work properly | ||||
Description | As discussed in 0027200, bugnote_clear_cache() only works as long as the bugnote to remove from $g_cache_bugnotes_by_id has also been stored in $g_cache_bugnotes_by_bug_id, but fails in the scenario where the bug-level cache has not been populated. | ||||
Steps To Reproduce |
| ||||
Tags | No tags attached. | ||||
related to | 0027200 | new | bugnote_update fires EVENT_BUGNOTE_EDIT but does not clear the note cache |
MantisBT: master-1.3.x 2d8f4c05 2016-11-06 10:03 Committer: dregad Details Diff |
Fix and improve clearing of bug related caches |
Affected Issues 0027217 |
|
mod - api/soap/mc_issue_api.php | Diff File | ||
mod - core/bug_api.php | Diff File | ||
mod - core/bugnote_api.php | Diff File | ||
mod - core/file_api.php | Diff File | ||
mod - csv_export.php | Diff File | ||
mod - excel_xml_export.php | Diff File | ||
mod - print_all_bug_page_word.php | Diff File | ||
MantisBT: master 68c52650 2020-09-02 08:46 Details Diff |
Fix bugnote_clear_cache() bugnote_clear_cache() only removed the note from $g_cache_bugnotes_by_id if it has also been stored in $g_cache_bugnotes_by_bug_id, but failed in the scenario where the bug-level cache has not been populated. Adding a specific unset() call to ensure the bugnote is actually removed from both caches. Fixes 0027217 |
Affected Issues 0027217 |
|
mod - core/bugnote_api.php | Diff File |