Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by David on Oct 16, 2008 03:24
open dhtmlx forum
keep in cache xml data for dhtmlxGrid

Hello,
To load xml in grid with loadxml function i call a php page with parameters. My php script done a mysql and after parse this for return an xml result.
As my php script take a time to return more 3000 rows (i use paging to show results), i would like keep in cache result as it when user go back on the datagrid he doesn't call again my php script, and i don't found how to this.
Could you help me for this please?
Answer posted by Support on Oct 16, 2008 06:33
>>As my php script take a time to return more 3000 rows (i use paging to show results)
You can try to use dyn. paging mode, which allows to load only part of data initially and load data on demand ( for example - fist page loaded initially , other pages loaded when user selects them ) 
http://dhtmlx.com/docs/products/dhtmlxGrid/samples/loading_big_datasets/50000_paging.html?un=1224165204000

There is no way to force caching, but you can disable the built-in url randomization by 
             grid.preventIECaching(false);
After such command grid will use exactly the same url, each time, and browser may cache such data ( the exact decision - to cache file or not , taken by browser, based on expire headers, sent by server )