View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update | 
|---|---|---|---|---|---|
| 0033482 | mantisbt | bugtracker | public | 2024-01-07 12:30 | 2024-09-29 13:15 | 
| Reporter | dregad | Assigned To | dregad | ||
| Priority | normal | Severity | minor | Reproducibility | N/A | 
| Status | closed | Resolution | fixed | ||
| Target Version | 2.27.0 | Fixed in Version | 2.27.0 | ||
| Summary | 0033482: Use config API to access allow_browser_cache | ||||
| Description | Until now, $g_allow_browser_cache config was handled in a non-standard way in http_caching_headers(), i.e. by referencing it as a global variable instead of retrieving its value with config_get_global(). This is a leftover from an old usage allowing to selectively enable caching for some pages, that was removed several years ago (see 0025969). Moreover, the setting is commented out in config_default_inc.php (i.e. not defined) instead of being set to OFF. | ||||
| Additional Information | This follows discussion started in PR 1925 where @vboctor suggested to 
 | ||||
| Tags | No tags attached. | ||||
| I'm not 100% sure that this config is actually needed - or even wanted - anymore. As pointed out by @cproensa some years back, enabled cache is causing several unwanted side effects (see 0026477:0063293). Anyway for now I'll just stick to @vboctor's suggestion to move the global variable references to config API calls. We can always remove the config later on. | |
| MantisBT: master 2c09d01e 2024-01-07 12:57 Details Diff | Use config API to access allow_browser_cache Until now $g_allow_browser_cache config was handled in a non-standard way in in http_caching_headers(), i.e. by referencing it as a global variable instead of retrieving its value with config_get_global(). Moreover, the setting was commented out in config_default_inc.php (i.e. not defined) instead of being set to OFF. This follows up on discussion in PR https://github.com/mantisbt/mantisbt/pull/1925 Fixes 0033482 | Affected Issues 0033482 | |
| mod - config_defaults_inc.php | Diff File | ||
| mod - core/http_api.php | Diff File | ||
