Welcome Guest, Not a member yet? Register   Sign In
Query caching on table level
#5

[eluser]Volder[/eluser]
this is the main problem which I'm facing.

The native DB cache class stores file for every cached queries, but in pages structure:
Quote:CodeIgniter places the result of EACH query into its own cache file. Sets of cache files are further organized into sub-folders corresponding to your controller functions. To be precise, the sub-folders are named identically to the first two segments of your URI (the controller class name and function name).
and following:
Quote:For example, let's say you have a blog that allows user commenting. Whenever a new comment is submitted you'll want to delete the cache files associated with the controller function that serves up your comments.

but imagine my comments queries are used in a bunch of controllers. And at the same time my controller which uses comments quiery - uses a lot of other quiries which are no how connected to comments - but I have to delete it.

What I would like - that caching would be organized on table level. So when I update Comments table - I want to clear cache only for queries which used this table.

Hope now the idea of what I need is more clear.
Actually, I was very surprised that this is not implemented natively in CI yet.


Messages In This Thread
Query caching on table level - by El Forum - 04-12-2009, 12:28 PM
Query caching on table level - by El Forum - 04-12-2009, 12:50 PM
Query caching on table level - by El Forum - 04-12-2009, 01:05 PM
Query caching on table level - by El Forum - 04-12-2009, 01:58 PM
Query caching on table level - by El Forum - 04-12-2009, 02:11 PM
Query caching on table level - by El Forum - 04-12-2009, 05:06 PM
Query caching on table level - by El Forum - 04-12-2009, 05:11 PM
Query caching on table level - by El Forum - 04-13-2009, 12:33 AM



Theme © iAndrew 2016 - Forum software by © MyBB