PDA

View Full Version : occasional page lag question


joeychgo
11-18-2004, 01:27 AM
Page generated in 5.51468 seconds with 27 queries (2 queries for uncached templates) [Server Loads: 1.36 1.79 : 2.12]
-
Page generated in 0.66464 seconds with 27 queries (2 queries for uncached templates) [Server Loads: 1.58 2.01 : 2.07]
-
Page generated in 0.55934 seconds with 27 queries (2 queries for uncached templates) [Server Loads: 1.39 1.93 : 2.04]
-
Page generated in 0.40496 seconds with 27 queries (2 queries for uncached templates) [Server Loads: 1.63 1.93 : 2.04]
-
This is on my homepage over a span of about 10 mins --- whats causing that 5 sec lag? Im guessing its the host since the loads are basically the same - but I dont know - can anyone help???

Also -how do I cache those templates??

Brad
11-18-2004, 07:13 AM
You have installed a hack that did not cache the templates properly, read this thread, it covers templates and how to cache them:

https://vborg.vbsupport.ru/showthread.php?t=59939

Secondly, 27 is a large number of queries per page. What exactly is this page doing to be making so many calls to the database!?

Are you in a shared hosting enviroment? Other sites could be using up resources. Or other php files on your site could be eating up resources and casuing long page generation times.

You will also want to look into things like cron scripts and see if a problem might lie there. It may also be possible that for some reason your tables are getting locked and taking awhile to re-open and allow others to read/update them.