Welcome Guest, Not a member yet? Register   Sign In
Output cache - caches even with POST?
#1

[eluser]markowe[/eluser]
As you probably know, CI's output cache function does a nice job of caching output into flat files on a per controller basis. As I understand it, the file name generated is an md5 of the uri string and the function looks for this on each page load, expiring it if necessary, or serving up the flat file if not, and a huge speed difference there is too.

But it does not take account of a form submission, i.e. user POST. For example, I have a page of product listings and the user can further filter the results by selecting form options (by date, by city, whatever), which are also optionally saved to a session cookie.

The output cache fuunction apparently does not take account of this and will serve up the same cached page regardless. What is the simple way round this?


Messages In This Thread
Output cache - caches even with POST? - by El Forum - 03-16-2010, 02:06 AM
Output cache - caches even with POST? - by El Forum - 03-16-2010, 03:04 AM
Output cache - caches even with POST? - by El Forum - 03-16-2010, 07:32 AM
Output cache - caches even with POST? - by El Forum - 03-16-2010, 08:10 AM
Output cache - caches even with POST? - by El Forum - 03-17-2010, 02:31 AM
Output cache - caches even with POST? - by El Forum - 03-17-2010, 03:23 AM



Theme © iAndrew 2016 - Forum software by © MyBB