-
12 Mar 2011 11:20 PM #1
Cache Problem in Extjs grid
Cache Problem in Extjs grid
hi..I'm using Extjs with Codeigniter framework..When i enable caching in codeigniter.Extjs grids data not loading from database.when a page/grid loads first time it works fine.but when i'm trying to load the same grid/page the grid loaded without data. what might be the problem? please help me. Thanks in advance.
-
13 Mar 2011 6:21 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,684
- Vote Rating
- 435
Are you receiving data from the backend?
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
13 Mar 2011 8:19 PM #3
first time i'm receiving data from backend. But when i'm trying to load the same page again every thing displays fine except grid data.In this case firebug call shows empty(nothing).
-
14 Mar 2011 5:00 AM #4Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,684
- Vote Rating
- 435
OK, so if on your second call if you get no data, this is why the grid isn't showing anything. Afraid to say that it seems like your backend is doing something and not returning data.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
14 Mar 2011 5:09 AM #5
but with out using caching it works fine.
-
14 Mar 2011 5:11 AM #6Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,684
- Vote Rating
- 435
So if you use caching in Codeignitor it doesn't work but if you turn off caching in Codeignitor it works. Sorry, but that's a Codeignitor issue.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
14 Mar 2011 5:23 AM #7
so is there any alternative solution for this caching in extjs? i want to load my web site fast.. how can i achieve this? is it possible?
-
14 Mar 2011 5:25 AM #8Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,684
- Vote Rating
- 435
Sure it's possible. Have you tested Codeigniter to make sure caching is working? Like go to the controller to see if you can get data? ExtJS and Codeigniter are separate and shouldn't really affect the other. If you need to specify parameters or change the names of parameters, that's pretty trivial to do in ExtJS.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
14 Mar 2011 5:32 AM #9
yes..i tested every thing.codeigniter caching working fine. when i'm using caching it works well for all pages except extjs grid,form,tabpanel, etc...
-
14 Mar 2011 5:37 AM #10
thanx mitchellsimoens.. if you have any better alternative solution for this plz share with me.
Similar Threads
-
Cache ExtJS
By Mycoding in forum Ext 3.x: Help & DiscussionReplies: 2Last Post: 28 Feb 2011, 9:30 AM -
cache extjs, so no need to load again.
By flatburger in forum Community DiscussionReplies: 3Last Post: 22 Aug 2008, 7:58 AM -
How do i disable ExtJs storing window dimension into cache and cookies?
By pokerking400 in forum Ext 2.x: Help & DiscussionReplies: 2Last Post: 16 May 2008, 9:38 AM -
Grid cache clearing Problem
By DevHasten in forum Ext 2.x: Help & DiscussionReplies: 10Last Post: 4 Mar 2008, 7:00 AM


Reply With Quote