Welcome Guest, Not a member yet? Register   Sign In
Cache / caching - is it working?
#1

[eluser]Bullit2k[/eluser]
Hi All,
I was suffering with a mysql database that was having to handle too many queries.
To cut down the need to get data from the database so often,
I put $this->output->cache(420); //to cache full pages for 7hrs at a time.

This code is in my main controller right at the top.
system/cache is writeable and filling nicely with cached pages. Inspection of a b603b82kfsjlfkjel file shows it is indeed a cached page.

However, I'm not seeing the effects of this cache.
if I edit a page's content with my custom CMS I'd expect to have to clear this cache to see the change. However I see the change immediately.

Also the database still looks to be handling the same number of queries.
(I know the majority of these queries relate to page data.)

Any ideas what to do next? Or is cache on and it's not that good?
The fact I can see changes on dynamic pages straight away makes me think it's not looking at the cache.
Is there another piece to this puzzle?

Any advice welcome.
Thanks


Messages In This Thread
Cache / caching - is it working? - by El Forum - 08-11-2009, 10:25 AM
Cache / caching - is it working? - by El Forum - 08-11-2009, 11:03 AM
Cache / caching - is it working? - by El Forum - 11-27-2009, 04:36 AM
Cache / caching - is it working? - by El Forum - 11-27-2009, 04:51 AM
Cache / caching - is it working? - by El Forum - 11-27-2009, 05:09 AM
Cache / caching - is it working? - by El Forum - 11-27-2009, 05:23 AM
Cache / caching - is it working? - by El Forum - 11-27-2009, 05:26 AM
Cache / caching - is it working? - by El Forum - 11-27-2009, 05:52 AM
Cache / caching - is it working? - by El Forum - 11-27-2009, 06:35 AM
Cache / caching - is it working? - by El Forum - 11-27-2009, 06:44 AM
Cache / caching - is it working? - by El Forum - 11-30-2009, 04:38 AM
Cache / caching - is it working? - by El Forum - 11-30-2009, 04:39 AM
Cache / caching - is it working? - by El Forum - 12-12-2009, 10:23 AM
Cache / caching - is it working? - by El Forum - 12-13-2009, 03:44 PM



Theme © iAndrew 2016 - Forum software by © MyBB