Welcome Guest, Not a member yet? Register   Sign In
Problem with AJAX and CI cache enabled: The response content is only displayed the first time
#1

[eluser]luismartin[/eluser]
I'm using the native CI output cache for the website of a manufacturing company. It has lots of product pages in which there's a section with a few tabs. When the user clicks on any tab, its content is loaded asynchronously (using jQuery) and then displayed. In this case the data returned from the server are HTML snippets and these are directly appended into the tab content.

Everything works fine on first load. The next ones nothing is displayed, until the cached file expires of course.

The cache for the ajax requests generates small documents which are not valid HTML, and they only have content like this string:

Code:
1337845520TS--->

The only thing that changes is the number. I'm totally puzzled and I don't know what to do apart from disabling the cache.



Messages In This Thread
Problem with AJAX and CI cache enabled: The response content is only displayed the first time - by El Forum - 05-24-2012, 01:08 AM



Theme © iAndrew 2016 - Forum software by © MyBB