View Issue Details

IDProjectCategoryView StatusLast Update
0020430mantisbtperformancepublic2015-12-27 06:25
Reportercproensa Assigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
Status newResolutionopen 
Product Version1.3.0-rc.1 
Summary0020430: Included files and core startup functions
Description

core.php performs operations to initialise which are executed on every page load.
Not every page loads may need all those initialization tasks.

For example:

  • header included files: css/common_config.php
  • plugin included files: plugin_file.php

probably, some of that cases dont need to initialize the plugin registering, or callapse api, etc
(Some of that actions are select and update from DB)

I think mainly plugin_file.php should be a more light weight script, since it is usually called for every header js or css that is needed for plugins (in every page load), and plugin images.

TagsNo tags attached.

Activities

cproensa

cproensa

2015-12-27 06:25

developer  

log.txt (2,092 bytes)   
27-12-2015 12:04 CET DB tokens_api.php:48 token_exists() array (
  0 => 'SELECT id FROM mantis_tokens_table WHERE id=\'232334\'',
  1 => '0.0021',
)
27-12-2015 12:04 CET DB tokens_api.php:215 token_update() array (
  0 => 'UPDATE mantis_tokens_table
					SET value=\'{"filter":true,"attachment_preview_1008":false,"attachment_preview_61617":false,"relationships":true,"upload_form":true,"monitoring":true,"bugnote_add":true,"bugnotes":true,"sponsorship":true,"attachment_preview_66232":false,"history":true}\', expiry=1482750295
					WHERE id=232334',
  1 => '0.0014',
)
27-12-2015 12:04 CET DB database_api.php:156 db_connect() array (
  0 => 'SET NAMES UTF8',
  1 => '0.0004',
)
27-12-2015 12:04 CET DB plugin_api.php:960 plugin_register_installed() array (
  0 => 'SELECT basename, priority, protected FROM mantis_plugin_table WHERE enabled=1 ORDER BY priority DESC',
  1 => '0.0028',
)
27-12-2015 12:04 CET DB authentication_api.php:809 auth_is_cookie_valid() array (
  0 => 'SELECT * FROM mantis_user_table WHERE cookie_string=\'YtTw1w9psM-mqr_uhOh8ESEDwnSvpNy_NKb3rprhK-eIxldZe4I52paW5YNmOXKM\'',
  1 => '0.0027',
)
27-12-2015 12:04 CET DB user_pref_api.php:308 user_pref_cache_row() array (
  0 => 'SELECT * FROM mantis_user_pref_table WHERE user_id=1 AND project_id=0',
  1 => '0.0018',
)
27-12-2015 12:04 CET DB project_api.php:106 project_cache_row() array (
  0 => 'SELECT * FROM mantis_project_table WHERE id=\'129\'',
  1 => '0.0042',
)
27-12-2015 12:04 CET DB config_api.php:138 config_get() array (
  0 => 'SELECT config_id, user_id, project_id, type, value, access_reqd FROM mantis_config_table',
  1 => '0.0012',
)
27-12-2015 12:04 CET DB tokens_api.php:245 token_purge_expired() array (
  0 => 'DELETE FROM mantis_tokens_table WHERE 1451214295 > expiry',
  1 => '0.0007',
)
27-12-2015 12:04 CET DB tokens_api.php:83 token_get() array (
  0 => 'SELECT * FROM mantis_tokens_table WHERE type=5 AND owner=1',
  1 => '0.0010',
)
27-12-2015 12:04 CET DB tokens_api.php:83 token_get() array (
  0 => 'SELECT * FROM mantis_tokens_table WHERE type=5 AND owner=1',
  1 => '0.0015',
)
log.txt (2,092 bytes)   

Issue History

Date Modified Username Field Change
2015-12-27 06:24 cproensa New Issue
2015-12-27 06:25 cproensa File Added: log.txt