View Issue Details

IDProjectCategoryView StatusLast Update
0035439mantisbtperformancepublic2025-02-25 06:35
Reporterraspopov Assigned Tocommunity  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
PlatformMicrosoftOSWindows ServerOS Version2022
Product Version2.25.0 
Target Version2.28.0Fixed in Version2.28.0 
Summary0035439: Multiple loads of plugins on the manage_plugin_page
Description

The page builds multiple internal lists of plugins installed and uninstalled, repeatedly loading plugins several times. Found it by accident when I was trying to figure out why my plugin sometimes doesn't load in MantisBT.

Steps To Reproduce

Add log to the top of the any uninstalled plugin php-file and open manage_plugin_page.php URL.

Additional Information

Obviously, the plugin_find_all() function should cache the results of its work.

TagsNo tags attached.

Relationships

related to 0026142 closeddregad Improve handling of invalid / incorrectly installed plugins 

Activities

raspopov

raspopov

2025-02-24 12:15

reporter   ~0069906

PR: https://github.com/mantisbt/mantisbt/pull/2107

dregad

dregad

2025-02-25 05:58

developer   ~0069908

the plugin_find_all() function should cache the results of its work.

Makes sense. I should have considered that when refactoring this page in 0026142. Thanks !

Related Changesets

MantisBT: master 056426aa

2025-02-24 12:13

raspopov

Committer: dregad


Details Diff
Add a cache to the plugin_find_all() function

Fixes 0035439.

Signed-off-by: raspopov <raspopov@cherubicsoft.com>
Affected Issues
0035439
mod - core/plugin_api.php Diff File