enabling cache

enabling cache

gobezugobezu Posts: 2Questions: 0Answers: 0
edited January 2010 in General
i just started looking at this wonderful piece of code ...

looking in firebug/net tab and running the server side "dataTables-1.6/examples/data_sources/server_side.html" example i see that each query is fetched w/o caching

i am wondering if it would be possible to cache the pages if so how

once again, deepest gratitude to the developer

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    Hi gobezu,

    It depends what you are looking for. If you are wanting to make use of server-side processing still, then you can do something like pipelining ( http://datatables.net/examples/server_side/pipeline.html ), which will store a cache of for handling paging, but will ask the server for new data whenever the user sorts (etc.) the data (which is an interaction that can't be predicted).

    If you want to have everything done on the client-side, and only one request per page load, then you can use Ajax sourced data: http://datatables.net/examples/data_sources/ajax.html

    Regards,
    Allan
  • gobezugobezu Posts: 2Questions: 0Answers: 0
    allan thanks for your response and on top of having developed and providing this tool for free your support is also prompt

    we are in the process of developing a website for classified ad (yeah i know there are plenty of those, but we'r looking at a defined and under-served market which we will develop) and is planning to use datatables for the list presentation of the ads. the site will be based on the joomla cms and all the backend part is already done and i am just looking into integrating datatables into it all

    once again thanks
  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    Hi gobezu,

    Thanks for the information - it's always great to hear how DataTables is being used! Perhaps you would consider posting your app/site in the "how do you use" thread: http://datatables.net/forums/comments.php?DiscussionID=230 when you've got it going?

    Regards,
    Allan
This discussion has been closed.