Welcome Guest, Not a member yet? Register   Sign In
output's cache and performance
#7

[eluser]Bad Penguin[/eluser]
Thank for your time to providing me such long answer.

[quote author="tomcode" date="1311842367"]
1. It does not matter were You call $this->output->cache(600), as long as it get's executed Wink
[/quote]

Ok, tought i had to put that libraries call before anything else.

[quote author="tomcode" date="1311842367"]
2. to check what's going on, set the log threshold to 2 in application/config.php
DEBUG - 2011-07-28 05:28:27 --> Total execution time: 0.0572
[/quote]

Ok its working now, is 0.0206 acceptable PHP side or i should use a different cache driver like APC/Memcache instead of file?

Client side the page i 9KB and takes 125-250ms to fully download.

Before:
Code:
DEBUG - 2011-07-28 14:16:39 --> Cache file written: app/cache/83f9965d673372c75a2cd29befb94aef
DEBUG - 2011-07-28 14:16:39 --> Final output sent to browser
DEBUG - 2011-07-28 14:16:39 --> Total execution time: 2.3151

After:
Code:
DEBUG - 2011-07-28 14:19:29 --> Final output sent to browser
DEBUG - 2011-07-28 14:19:29 --> Total execution time: 0.0206
DEBUG - 2011-07-28 14:19:29 --> Cache file is current. Sending it to browser.


Messages In This Thread
output's cache and performance - by El Forum - 07-27-2011, 02:43 AM
output's cache and performance - by El Forum - 07-27-2011, 07:40 PM
output's cache and performance - by El Forum - 07-27-2011, 09:39 PM
output's cache and performance - by El Forum - 07-27-2011, 10:07 PM
output's cache and performance - by El Forum - 07-28-2011, 12:25 AM
output's cache and performance - by El Forum - 07-28-2011, 12:38 AM
output's cache and performance - by El Forum - 07-28-2011, 06:24 AM
output's cache and performance - by El Forum - 07-28-2011, 06:26 AM



Theme © iAndrew 2016 - Forum software by © MyBB