Quantcast

Weird Cake 2 cache issue when sorting

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Weird Cake 2 cache issue when sorting

Devario Johnson
Hi all, I have a weird thing that I am seeing and I was hoping someone could shed some light on it.

Config => Cache.check, true / or not true same result
          => Cache.disable, true / or not same result

here is the flow..

User logs in -> sees db data -> sorts it .... all is well logs out
new user logs in (same machine) -> sees db data pertinent to them -> tries to sort = old cached data from previous sort comes back

How do I disable this?

<cake:nocache> DBDataHere </cake:nocache>

Doesnt seem to affect it

*interesting tidbit, on my local machine, the nocacheblocks works and this doesnt happen...when I up it to the server...I see this behavior.  

any ideas?  Cache folder is fully writable, (though im thinking this may be a local browser thing???)

--
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to [hidden email].
To unsubscribe from this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
 
 
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Weird Cake 2 cache issue when sorting

Devario Johnson
btw...if I refresh, it goes away and works fine for that particular sort

On Wednesday, August 15, 2012 6:32:45 PM UTC-4, Devario Johnson wrote:
Hi all, I have a weird thing that I am seeing and I was hoping someone could shed some light on it.

Config => Cache.check, true / or not true same result
          => Cache.disable, true / or not same result

here is the flow..

User logs in -> sees db data -> sorts it .... all is well logs out
new user logs in (same machine) -> sees db data pertinent to them -> tries to sort = old cached data from previous sort comes back

How do I disable this?

<cake:nocache> DBDataHere </cake:nocache>

Doesnt seem to affect it

*interesting tidbit, on my local machine, the nocacheblocks works and this doesnt happen...when I up it to the server...I see this behavior.  

any ideas?  Cache folder is fully writable, (though im thinking this may be a local browser thing???)

--
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to [hidden email].
To unsubscribe from this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
 
 
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Weird Cake 2 cache issue when sorting

Devario Johnson
ok I found the solution.  Here it is for anyone that needs it

Not sure why any of the other clear caching methods didnt work but in the controller this worked for me

$this->disableCache();

--
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to [hidden email].
To unsubscribe from this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
 
 
Loading...