[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
[/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.