| Re: This page loaded in x seconds |
| by brash on 2003/10/8 6:46:45 Might also be worth mentioning that you I think you need to have all caching in system admin -> preferences -> general settings turned off for this feature to work. |
| Re: This page loaded in x seconds |
| by brash on 2003/10/8 1:00:32 Thanks so much Olorin ! I was wondering where the time logging was kicked off. I've also managed to get the page load time displayed in the footer just as I wanted. I searched phpkaox theme.html for this bit of code; Quote: <{$xoops_footer}> Then just added your code directly after this, with a <p> tag on the end to space it out a bit. So after I added the code it looked like this; Quote: <{$xoops_footer}><{php}>global $ftime; You can see what it looks like at http://www.it-hq.org Once again, thank you so much Olorin! |
| Re: This page loaded in x seconds |
| by OldSwede on 2003/10/7 15:34:53 Thank you, this works perfect for me with 2.0.4 and 2.0.5 RC wr oldswede |
| Re: This page loaded in x seconds |
| by Olorin on 2003/10/7 13:01:37 Quote: This page loaded in <? php global $ftime; echo $ftime; ?> seconds This cord doesn't work since your theme file is html. Quote: $xoopsLogger->startTime(); And this function is already called in common.php Thus my code should work with XOOPS 2.0.x. At least,it's working at my site... Did you update your cache? |
| Re: This page loaded in x seconds |
| by brash on 2003/10/7 1:20:23 Thanks heaps for you help Olorin I tried entering the code you posted into the theme.html file of the theme I am using (phpkaox), but nothing is printed to the screen (I placed it at the very bottom just before the </body> tag) . I also tried putting the code into the footer (as this is where I was wanting it anyway), and all it seems to do was print the entire code to screen. I tried making an adaption to suit my needs; Quote: This page loaded in <? php global $ftime; echo $ftime; ?> seconds This prints correctly at in the footer, except the actual load time is absent as when I replace $ftime with text such as hello, the text is displayed, so I assume I'm missing something to get the $ftime value to print. I also made the other code changes you specified. One thing I was wondering is what kicks off the time log? Would I have to include something like Quote: $xoopsLogger->startTime(); in the header.php to start the time logging process? Thanks again |