Welcome Guest, Not a member yet? Register   Sign In
Database caching confusion
#4

[eluser]Otemu[/eluser]
Sorry I left a huge chunk out when I copied and pasted before

Active Record Caching

While not "true" caching, Active Record enables you to save (or "cache") certain parts of your queries for reuse at a later point in your script's execution. Normally, when an Active Record call is completed, all stored information is reset for the next call. With caching, you can prevent this reset, and reuse information easily.

Cached calls are cumulative. If you make 2 cached select() calls, and then 2 uncached select() calls, this will result in 4 select() calls. There are three Caching functions available:

I assume then $this->db->cache_on(); is for active records, if both functions work then don't stress about it an just use $this->db->cache_on()


Messages In This Thread
Database caching confusion - by El Forum - 01-09-2013, 03:04 AM
Database caching confusion - by El Forum - 01-09-2013, 05:19 AM
Database caching confusion - by El Forum - 01-09-2013, 07:38 AM
Database caching confusion - by El Forum - 01-09-2013, 09:04 AM
Database caching confusion - by El Forum - 01-09-2013, 09:11 AM
Database caching confusion - by El Forum - 10-07-2013, 12:04 AM



Theme © iAndrew 2016 - Forum software by © MyBB