View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0037098 | mantisbt | performance | public | 2026-04-25 04:14 | 2026-05-05 10:41 |
| Reporter | raspopov | Assigned To | community | ||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | resolved | Resolution | fixed | ||
| Product Version | 2.28.1 | ||||
| Target Version | 2.29.0 | Fixed in Version | 2.29.0 | ||
| Summary | 0037098: Unnecessary token requests from the database on the issue page | ||||
| Description | The view.php page makes numerous repeated calls to the This issue was recently mentioned in post: 0036889:0070808. | ||||
| Steps To Reproduce | Enable database logging, for example:
Go to any issue: view.php?id=... | ||||
| Additional Information | It is proposed to implement a cache to simply store the return values of tokens from the database as a new global variable. It might be worth considering caching the user data returned by the | ||||
| Tags | No tags attached. | ||||
|
PR: https://github.com/mantisbt/mantisbt/pull/2210 Working with the cache by function:
|
|
|
MantisBT: master 36044d26 2026-05-05 03:54 Committer: community Details Diff |
Add a cache for tokens retrieved from the database A cache of tokens retrieved from the database has been added as a new global variable, $g_cache_token. The chosen cache format simplifies the process of obtaining a token and storing it in the cache, but makes it more complicated to verify the token ID; however, in practice, this does not reduce the cache's efficiency due to the optimal order of function calls in MantisBT. In addition, the code explicitly casts token identifiers to integers throughout. Fixes 0037098, https://github.com/mantisbt/mantisbt/pull/2210 |
Affected Issues 0037098 |
|
| mod - core/tokens_api.php | Diff File | ||
| add - tests/Mantis/TokensApiTest.php | Diff File | ||