caching in Mantis
Posted: 10 Aug 2006, 04:37
Hello,
I inherited the job of looking after a Mantis installation (is now 1.0.5), and they have been some grumbles about performance.I turned on the config options to look at the queries against the db. There are some which are repetitive like: SELECT * FROM mantis_user_table WHERE user_id='183'.
But if I read the code correctly (user_api.php in this case) a row of data like this should be cached in a variable and not need a db query. I added debug and the global cache variable is not set in this case. A page refresh and the same queries are done again.
Is my understanding not right, or do we have a configuration problem somewhere. [php 5.1.4 on Ubuntu Linux]
Thanks,
Pat
I inherited the job of looking after a Mantis installation (is now 1.0.5), and they have been some grumbles about performance.I turned on the config options to look at the queries against the db. There are some which are repetitive like: SELECT * FROM mantis_user_table WHERE user_id='183'.
But if I read the code correctly (user_api.php in this case) a row of data like this should be cached in a variable and not need a db query. I added debug and the global cache variable is not set in this case. A page refresh and the same queries are done again.
Is my understanding not right, or do we have a configuration problem somewhere. [php 5.1.4 on Ubuntu Linux]
Thanks,
Pat