How to enable server side processing with client side caching?

How to enable server side processing with client side caching?

BenjaminBenjamin Posts: 5Questions: 0Answers: 0
edited November 2011 in General
Is there a way to enable caching of the ajax request and a way to set the expire duration?

Basically I have a script that is being called by ajax, and it takes very long to load, +- 30 to 120 seconds (this duration is caused by php framework). And this duration am fine with, but I don't want to load it every time I sort the columns or start a search. Sometimes sorting or searching should start a new un-cached ajax request but only after a expiry time.

Replies

  • BenjaminBenjamin Posts: 5Questions: 0Answers: 0
    My mistake, I realized that my request is impossible. Since I only pass the relevant data to datatables by php it does not know what values was on the second page when it queried the script initially, so having it cached would be like displaying the first page when clicking on the second page.
This discussion has been closed.