Re: Cache problem using CakePHP default File config on apache 1.3.x - server crashes
Hi - no - do you think that would help? I tried making the prefix of the cache different in case there was a conflict with other caching in the /tmp of the server but that hasn't worked, as the site has hung again just now. I will see if I can find some info on the lock thing, thanks. Are you able to increase headroom on the server? More ram/cpu perhaps, if on a VPS upgrade to the next one up. If you can, install htop and keep an eye to see what's using the most processes, php, mysql etc. What server optimisations do you have in place, APC etc? Have a read of http://www.pseudocoder.com/blog/8-ways-to-speed-up-cakephp-apps Sounds like cake is running out of juice during busy periods and you're getting broken cache files as a consequence. I think your options are to upgrade your hardware or optimise your application. It's not really a cake bug, but growing pains, by the sounds of it. hth Jon -- jon bennett - www.jben.net - blog.jben.net -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Cache problem using CakePHP default File config on apache 1.3.x - server crashes
hi Jon, thanks for your helpful reply. I am not sure that it is performance, since the site is not really busy as yet, but maybe you have something. I wonder if it is my statement to cache index action in my services controller for example that is breaking things, I might try just having caching on but no actions. Then gradually add an action in 1 each few days. My index action you see in actual fact takes an ID and so has about 40 diffferent pages formed from it. I put about 15 of these in like so in my controller: var $cacheAction = array( // 'index/' = '1 day', 'index/1' = 172800, //2 days 'index/2' = 172800, 'index/3' = 172800, (I wonder if it is something like this that somehow forcing a high load on the server and then the cache file write is broken as you say. I really don't know much at all about linux/server related things. Do you think another caching system might be a better route - or is File cache the most robust? Rather than Memcache etc. thanks for your help and to people on IRC. cheers Luke -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Cache problem using CakePHP default File config on apache 1.3.x - server crashes
Hi I am using some controller level caching for a few actions on a couple of cakePHP sites. both are cake1.3 sites, and are on the same VPS, running php 5.2.11 and it has eAccelrator too. the cache seemed to work for a few days and then both sites became unreachable this morning. I restarted the VPS as it had crashed, and then the sites still didnt come back up. I turned debug on to 1 on both and then they worked (implying cache issues) - and since cacheing was added just last week to one of them I belive it is a caching problem. I have checked in my error_log for apche and there are segmentation faults 11 around the time the server crashed, also child processes exiting. (thanks to theAnachron in IRC for their help in finding this). I have now set the prefixes to explicitly different things for these 2 cake apps. Any other suggestions for me to get cache wokring without crashing? Would I be better sidestepping and using MemCache or similar (are these more robust?) sorry for my obvious cache n00b-iness. I want to sue it as the performance boost seems great and is suitable for these sites, whose content is reasonably static on popular pages. thanks boobyW -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Cache problem using CakePHP default File config on apache 1.3.x - server crashes
Just a shot in the blue: Have you tried to set the 'lock' = true option in your Cache::config ? Am 19.04.2011 15:49, schrieb luke BAKING barker: Hi I am using some controller level caching for a few actions on a couple of cakePHP sites. both are cake1.3 sites, and are on the same VPS, running php 5.2.11 and it has eAccelrator too. the cache seemed to work for a few days and then both sites became unreachable this morning. I restarted the VPS as it had crashed, and then the sites still didnt come back up. I turned debug on to 1 on both and then they worked (implying cache issues) - and since cacheing was added just last week to one of them I belive it is a caching problem. I have checked in my error_log for apche and there are segmentation faults 11 around the time the server crashed, also child processes exiting. (thanks to theAnachron in IRC for their help in finding this). I have now set the prefixes to explicitly different things for these 2 cake apps. Any other suggestions for me to get cache wokring without crashing? Would I be better sidestepping and using MemCache or similar (are these more robust?) sorry for my obvious cache n00b-iness. I want to sue it as the performance boost seems great and is suitable for these sites, whose content is reasonably static on popular pages. thanks boobyW -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Cache problem using CakePHP default File config on apache 1.3.x - server crashes
Hi - no - do you think that would help? I tried making the prefix of the cache different in case there was a conflict with other caching in the /tmp of the server but that hasn't worked, as the site has hung again just now. I will see if I can find some info on the lock thing, thanks. Luke -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Auth component IE (Internet explorer) cache problem (Session gets destroy in IE)
I am using auth component for user authentication. I am creating force logout functionality in my application. If user with same username and password logged in from one machine and another user try to log in using same user name and password from another machine. he/she will see force logout option under login form. if he/she click on that. first user gets logout. I am doing this using database table. above functionality works great in firefox but not in IE 7. In IE when i click on force logout, auth gives me na error You are not authorized to access that location. Apache log gives me 302 error. I have changed following part of session in core.php but still it is not working ... Configure::write('Security.level', 'low'); Configure::write('Session.checkAgent', false); And following are unchanged sessions configuration from core.php Configure::write('Session.save', 'php'); Configure::write('Session.cookie', 'CAKEPHP'); Configure::write('Session.timeout', '120'); Configure::write('Session.start', true); --- [B]AppController[/B] [CODE] class AppController extends Controller { var $components = array('Auth', 'Cookie', 'RequestHandler'); var $helpers = array('Html', 'Form', 'Javascript', 'Ajax','Time'); function beforeFilter() { $this-Auth-loginRedirect = array('plugin' = null,'controller' = 'questions', 'action' = 'home'); $this-Auth-logoutRedirect = array('plugin' = null,'controller'= 'users', 'action' = 'login'); $this-Auth-allow('signup', 'confirm', 'home', 'show','questionlist'); $this-Auth-authorize = 'controller'; $this-Auth-userScope = array('User.confirmed' = '1'); $this-set('loggedIn', $this-Auth-user('id')); $this-Auth-autoRedirect = false; $this-Cookie-name = 'QuickWall'; if(!$this-Auth-user('id')) { $cookie = $this-Cookie-read('User'); if($cookie) { $this-Auth-login($cookie); } } else { if(!ClassRegistry::init('TrackSession')- getMyAccess($this-Auth-user('id'),$this-Session-id()) $this- params['action'] !='forceLogout' !$this-RequestHandler-isAjax()) { $this-redirect($this-Auth-logout ()); } } } [/CODE] UserController.php login action [CODE] function login() { if ($this-Auth-user()) { if (!empty($this-data)) { $this-User-set($this-data); if (empty($this-data['User']['remember_me'])) { $this-Cookie-del('User'); } else { $cookie = array(); $cookie['username'] = $this-data ['User']['username']; $cookie['password'] = $this-data ['User']['password']; $this-Cookie-write('User', $cookie, true,'+2 weeks'); } unset($this-data['User']['remember_me']); $this-Session-write('username', $this-data ['User']['username']); if(!ClassRegistry::init('TrackSession')- getMyStatus($this-Auth-user('id'))) { $this-User-logTrackSession($this- Auth-user('id'), $this-data ['User']['username'], $this-Session- id(), $this- RequestHandler-getClientIP()); $this-User-trackSession($this-Auth- user ('id'), $this-Session-id(), $this- RequestHandler-getClientIP()); $this-redirect($this-Auth-redirect ()); } else { $this-set('force_logout_error', 'ForceLogout'); unset($this-data['User'] ['password']); //$this-redirect($this-Auth-login ()); } } } $this-set('menuTab', 'login'); } [/CODE] - UserController.php forceLogout(action) [CODE] function forceLogout() { $username = $this-Session-read('username');
Re: Cache Problem with safari 4
I am sure Safari does cache the page for you. My feeling is that you can't fix this with a header. My feeling is that Safari has this feature for some kinds of back-clicking no matter what you do. Possibly it is to aid javascript-heavy sites. If I click away now, in the middle of typing this post, I can click back and still have my text in this ajax-loaded field on the page. Neither the field nor the text were there when the page loaded. That is not how FF or any other browser works afaik. I guess the old rule still applies. Back-buttons are for websites... not applications. :) (try clicking back in gmail for example) /Martin On Sep 13, 7:33 am, p_tucky p_tu...@whatinthai.com wrote: Please test on FF3.5, IE7+ , and Safari4 http://perhabs.com/cake_test user: test pass: test please look at display current time under login button. After login then click back button then see display time Firefox and IE will show you new time but Safari still display cache time. That's why I mention Safari still cache. Thanks On Sep 11, 2:03 pm, Martin Westin martin.westin...@gmail.com wrote: I am not sure that is a cache problem or anything you can fix. Are you sure I use Safari 4 all the time and I am under the impression that the browser sometimes doesn't do any request at all when using the back button. It simply re-displays what it a few moments ago. I have not checked if the browser technically does a request or not. It is just a feeling I get. /Martin On Sep 11, 6:13 am, p_tucky p_tu...@whatinthai.com wrote: Hi, I have cache problem with safari 4. Any one have problem like me? I’ve tried with this code but does not work. It take me to the previous page and have still show the text on form. function beforeFilter() { if($this-action == ‘login’) { $this-disableCache(); } Header( “Last-Modified: ” . gmdate( “D, j M Y H:i:s” ) . ” GMT” ); Header( “Expires: ” . gmdate( “D, j M Y H:i:s”, time() ) . ” GMT” ); Header( “Cache-Control: no-store, no-cache, must-revalidate” ); } FF and IE both don’t have any problem, when click “back button” and no cache. Safari 4 it seem still have cache when click “back button”. Any solution please advise. Thanks in advance. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Cache Problem with safari 4
Thanks, for your ans Martin Westin Marcelo Andrade. On Sep 14, 1:13 pm, Martin Westin martin.westin...@gmail.com wrote: I am sure Safari does cache the page for you. My feeling is that you can't fix this with a header. My feeling is that Safari has this feature for some kinds of back-clicking no matter what you do. Possibly it is to aid javascript-heavy sites. If I click away now, in the middle of typing this post, I can click back and still have my text in this ajax-loaded field on the page. Neither the field nor the text were there when the page loaded. That is not how FF or any other browser works afaik. I guess the old rule still applies. Back-buttons are for websites... not applications. :) (try clicking back in gmail for example) /Martin On Sep 13, 7:33 am, p_tucky p_tu...@whatinthai.com wrote: Please test on FF3.5, IE7+ , and Safari4 http://perhabs.com/cake_test user: test pass: test please look at display current time under login button. After login then click back button then see display time Firefox and IE will show you new time but Safari still display cache time. That's why I mention Safari still cache. Thanks On Sep 11, 2:03 pm, Martin Westin martin.westin...@gmail.com wrote: I am not sure that is a cache problem or anything you can fix. Are you sure I use Safari 4 all the time and I am under the impression that the browser sometimes doesn't do any request at all when using the back button. It simply re-displays what it a few moments ago. I have not checked if the browser technically does a request or not. It is just a feeling I get. /Martin On Sep 11, 6:13 am, p_tucky p_tu...@whatinthai.com wrote: Hi, I have cache problem with safari 4. Any one have problem like me? I’ve tried with this code but does not work. It take me to the previous page and have still show the text on form. function beforeFilter() { if($this-action == ‘login’) { $this-disableCache(); } Header( “Last-Modified: ” . gmdate( “D, j M Y H:i:s” ) . ” GMT” ); Header( “Expires: ” . gmdate( “D, j M Y H:i:s”, time() ) . ” GMT” ); Header( “Cache-Control: no-store, no-cache, must-revalidate” ); } FF and IE both don’t have any problem, when click “back button” and no cache. Safari 4 it seem still have cache when click “back button”. Any solution please advise. Thanks in advance. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Cache Problem with safari 4
On Sun, Sep 13, 2009 at 7:33 AM, p_tucky p_tu...@whatinthai.com wrote: Please test on FF3.5, IE7+ , and Safari4 http://perhabs.com/cake_test user: test pass: test please look at display current time under login button. After login then click back button then see display time Firefox and IE will show you new time but Safari still display cache time. That's why I mention Safari still cache. Did you tried to wrap the clock code in the view with cake:nocache tags ? http://book.cakephp.org/view/347/Marking-Non-Cached-Content-in-Views Best regards. -- MARCELO DE F. ANDRADE Belem, PA, Amazonia, Brazil Linux User #221105 http://mfandrade.wordpress.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Cache Problem with safari 4
Please test on FF3.5, IE7+ , and Safari4 http://perhabs.com/cake_test user: test pass: test please look at display current time under login button. After login then click back button then see display time Firefox and IE will show you new time but Safari still display cache time. That's why I mention Safari still cache. Thanks On Sep 11, 2:03 pm, Martin Westin martin.westin...@gmail.com wrote: I am not sure that is a cache problem or anything you can fix. Are you sure I use Safari 4 all the time and I am under the impression that the browser sometimes doesn't do any request at all when using the back button. It simply re-displays what it a few moments ago. I have not checked if the browser technically does a request or not. It is just a feeling I get. /Martin On Sep 11, 6:13 am, p_tucky p_tu...@whatinthai.com wrote: Hi, I have cache problem with safari 4. Any one have problem like me? I’ve tried with this code but does not work. It take me to the previous page and have still show the text on form. function beforeFilter() { if($this-action == ‘login’) { $this-disableCache(); } Header( “Last-Modified: ” . gmdate( “D, j M Y H:i:s” ) . ” GMT” ); Header( “Expires: ” . gmdate( “D, j M Y H:i:s”, time() ) . ” GMT” ); Header( “Cache-Control: no-store, no-cache, must-revalidate” ); } FF and IE both don’t have any problem, when click “back button” and no cache. Safari 4 it seem still have cache when click “back button”. Any solution please advise. Thanks in advance. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Cache Problem with safari 4
I am not sure that is a cache problem or anything you can fix. Are you sure I use Safari 4 all the time and I am under the impression that the browser sometimes doesn't do any request at all when using the back button. It simply re-displays what it a few moments ago. I have not checked if the browser technically does a request or not. It is just a feeling I get. /Martin On Sep 11, 6:13 am, p_tucky p_tu...@whatinthai.com wrote: Hi, I have cache problem with safari 4. Any one have problem like me? I’ve tried with this code but does not work. It take me to the previous page and have still show the text on form. function beforeFilter() { if($this-action == ‘login’) { $this-disableCache(); } Header( “Last-Modified: ” . gmdate( “D, j M Y H:i:s” ) . ” GMT” ); Header( “Expires: ” . gmdate( “D, j M Y H:i:s”, time() ) . ” GMT” ); Header( “Cache-Control: no-store, no-cache, must-revalidate” ); } FF and IE both don’t have any problem, when click “back button” and no cache. Safari 4 it seem still have cache when click “back button”. Any solution please advise. Thanks in advance. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Cache Problem with safari 4
Hi, I have cache problem with safari 4. Any one have problem like me? I’ve tried with this code but does not work. It take me to the previous page and have still show the text on form. function beforeFilter() { if($this-action == ‘login’) { $this-disableCache(); } Header( “Last-Modified: ” . gmdate( “D, j M Y H:i:s” ) . ” GMT” ); Header( “Expires: ” . gmdate( “D, j M Y H:i:s”, time() ) . ” GMT” ); Header( “Cache-Control: no-store, no-cache, must-revalidate” ); } FF and IE both don’t have any problem, when click “back button” and no cache. Safari 4 it seem still have cache when click “back button”. Any solution please advise. Thanks in advance. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Auth component cache problem in Internet Explorer
Try Configure::write('Session.checkAgent', false); in app/config/ core.php - Flash send different User-Agent string and it resets session. On May 8, 3:03 pm, remy remyjacob...@gmail.com wrote: Still haven't solved the problem, but I did found what the problem is.. It seems that something went wrong with Flash. When I disabled all Flash parts in my site, the Auth component works fine in IE. It looks like that the Flash 'resets' the cache with also the userdata for the Auth component. Anybody else who knows how to solve this problem? On 7 mei, 23:51, rartavia royarta...@gmail.com wrote: The weirdest part is that even when I toldauthto allow that specific action, I checked my data that arrived correctly but still the save() didn't occurred. About that, do ignore it, that happen because in that saving, user_id is required and as in that request is null so a db error occurred. The problem is the user in session beaning null. Thanks for any help --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Auth component cache problem in Internet Explorer
I'm experiencing the same problem, but I have managed to isolate it to occur only when I'm making ajax requests that make use of parameters. That is, in Cake if I am using the $ajax helper and use the with option for a function to return a string, or if the request is created in javascript using the parameters option in the prototype ajax.request. I have not reviewed flash enough to determine if it plays a part in my problems. I only use setFlash. This was not happening for me in IE7 only IE8 beta 1 and IE 8.0.6001 On May 8, 3:03 am, remy remyjacob...@gmail.com wrote: Still haven't solved the problem, but I did found what the problem is.. It seems that something went wrong with Flash. When I disabled all Flash parts in my site, theAuthcomponent works fine in IE. It looks like that the Flash 'resets' thecachewith also the userdata for theAuthcomponent. Anybody else who knows how to solve this problem? On 7 mei, 23:51, rartavia royarta...@gmail.com wrote: The weirdest part is that even when I toldauthto allow that specific action, I checked my data that arrived correctly but still the save() didn't occurred. About that, do ignore it, that happen because in that saving, user_id is required and as in that request is null so a db error occurred. The problem is the user in session beaning null. Thanks for any help --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Auth component cache problem in Internet Explorer
Still haven't solved the problem, but I did found what the problem is.. It seems that something went wrong with Flash. When I disabled all Flash parts in my site, the Auth component works fine in IE. It looks like that the Flash 'resets' the cache with also the userdata for the Auth component. Anybody else who knows how to solve this problem? On 7 mei, 23:51, rartavia royarta...@gmail.com wrote: The weirdest part is that even when I toldauthto allow that specific action, I checked my data that arrived correctly but still the save() didn't occurred. About that, do ignore it, that happen because in that saving, user_id is required and as in that request is null so a db error occurred. The problem is the user in session beaning null. Thanks for any help --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Auth component cache problem in Internet Explorer
I'm having a similar problem with internet explorer 8. I sending data via ajax to my controller, in Firefox, Safari, Chrome and Opera works quite all right. However, seems like IE fails to send the login info. My requests failed in IE so I did $this-log($this- Session-read('Auth.User'), LOG_DEBUG); in my app_cotroller and with all browsers excepting IE I could see my user in session, with IE appeared empty, hence I couldn't access my controller method (protected by auth). The weirdest part is that even when I told auth to allow that specific action, I checked my data that arrived correctly but still the save() didn't occurred. Could you solve your issue? Anybody else have any ideas? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Auth component cache problem in Internet Explorer
The weirdest part is that even when I told auth to allow that specific action, I checked my data that arrived correctly but still the save() didn't occurred. About that, do ignore it, that happen because in that saving, user_id is required and as in that request is null so a db error occurred. The problem is the user in session beaning null. Thanks for any help --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Auth component cache problem in Internet Explorer
Hi all, I'm using the Auth component for a simple user controller system to login/logout. It worked fine with version 1.2.0.6311 beta. Since I updated my cake to version 1.2 RC2 I found an error in IE7. Logging in seems to work fine, but when I go to another page, I instantly get logged out. This only happens when I use Internet Explorer, with Firefox everything works still fine. Can anybody tell me what went wrong? It seems to be a caching problem... Thanks in advance! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: IE cache problem
I have got this problem, using treeBehavior. when after adding new node, cake took it from cachei just added time() to the end of redirecting url $this-flash('Added', '/articles/index?1234567890'); On Feb 16, 1:18 pm, Dr. Loboto drlob...@gmail.com wrote: 100% way with IE is only add some random GET parameter to image URL. On Feb 14, 8:35 pm, marco.rizze...@gmail.com marco.rizze...@gmail.com wrote: Hi I have a page where the user can upload its photo. I save the photo always in the same location. In FF when I reload the page after the save operation I see the right photo. In IE instead i see always the old photo. I try to use disableCache() function but I can't to resolve the problem. Can someone helo me? Many Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: IE cache problem
100% way with IE is only add some random GET parameter to image URL. On Feb 14, 8:35 pm, marco.rizze...@gmail.com marco.rizze...@gmail.com wrote: Hi I have a page where the user can upload its photo. I save the photo always in the same location. In FF when I reload the page after the save operation I see the right photo. In IE instead i see always the old photo. I try to use disableCache() function but I can't to resolve the problem. Can someone helo me? Many Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: IE cache problem
Send a header which prevents caching of images. You're usually better off with client side caching of images, even though you occasionally have to change the image name when the image changes. If you use an Image Model, you can append the id value to the image name. But if that doesn't fit your app, I guess you're stuck with the non- caching header option. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
IE cache problem
Hi I have a page where the user can upload its photo. I save the photo always in the same location. In FF when I reload the page after the save operation I see the right photo. In IE instead i see always the old photo. I try to use disableCache() function but I can't to resolve the problem. Can someone helo me? Many Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: IE cache problem
Hi I have a page where the user can upload its photo. I save the photo always in the same location. In FF when I reload the page after the save operation I see the right photo. In IE instead i see always the old photo. I try to use disableCache() function but I can't to resolve the problem. Can someone helo me? probably the problem is not the cakephp cache, but the Internet explorer cache.. IMHO you should delete the IE temporary files to solve the problem.. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: IE cache problem
If I would to avoid this thing without change always the name of file how can I do it? On Feb 14, 5:38 pm, fain182 fain...@gmail.com wrote: Hi I have a page where the user can upload its photo. I save the photo always in the same location. In FF when I reload the page after the save operation I see the right photo. In IE instead i see always the old photo. I try to use disableCache() function but I can't to resolve the problem. Can someone helo me? probably the problem is not the cakephp cache, but the Internet explorer cache.. IMHO you should delete the IE temporary files to solve the problem.. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Internet Explorer Cache Problem [ CakePHP 1.2 RC3 ]
hey brett, thank you very much for your reply. i will try $this-disableCache() on my controllers, thank you Rohman --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Internet Explorer Cache Problem [ CakePHP 1.2 RC3 ]
Uhm... I think is not that as i don't want to lose queries results if pressing back button... but as it says This is different than view caching... I think my answer should be in View Caching as I want to force reload the view but not lose the queries if i'm logged in. As I understand the disableCache() is used to stop the browser caching the page, which is what I thought you were asking for. I have tried logging in with IE7 and then out, I then try to access the same page by clicking on a link (not back button) on one of my sites and it prevents access in the same way FF does. I'm using the Auth component to login and logout with and use the $session-read('Auth.User.username') to get the user information. This was on a 1.2 RC2 site, haven't tried with the latest RC3will try later if I get time. Brett Wilton http://wiltonsoftware.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Internet Explorer Cache Problem [ CakePHP 1.2 RC3 ]
thanks for the reply again, i will try to use the disableCache() function and see. i had never used 1.2 RC2 as i switched from 1.1 to 1.2 RC3 directly and then find out that issue. i will try a little more. thanks Rohman On Nov 12, 5:57 am, Brett Wilton [EMAIL PROTECTED] wrote: Uhm... I think is not that as i don't want to lose queries results if pressing back button... but as it says This is different than view caching... I think my answer should be in View Caching as I want to force reload the view but not lose the queries if i'm logged in. As I understand the disableCache() is used to stop the browser caching the page, which is what I thought you were asking for. I have tried logging in with IE7 and then out, I then try to access the same page by clicking on a link (not back button) on one of my sites and it prevents access in the same way FF does. I'm using the Auth component to login and logout with and use the $session-read('Auth.User.username') to get the user information. This was on a 1.2 RC2 site, haven't tried with the latest RC3will try later if I get time. Brett Wiltonhttp://wiltonsoftware.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Internet Explorer Cache Problem [ CakePHP 1.2 RC3 ]
Hi Rohman, I just tried the latest RC3 7866 and have found that the IE7 is functioning as you indicated, this is not how it worked under RC2. I'm not sure off hand why there is this difference. Brett --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Internet Explorer Cache Problem [ CakePHP 1.2 RC3 ]
If you type in the page with IE7 I get the same result, even on a 1.1.X project I had with othAuth. I was wrong in saying RC2 worked as I was clicking a link rather than typing one in. The only way to stop IE7 from caching the page is to use the disableCache(), I did a quick hack in my app_controller.php and in the beforeFilter() function put $this-disableCache() and this forced IE to reload the page. You could I guess just disable the cache for IE7 and / or only when you've been browsing logged in pages. There may be another solution but I'm not aware of it. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Internet Explorer Cache Problem [ CakePHP 1.2 RC3 ]
Not sure if this is what your after or not, Controller::disableCache...http://book.cakephp.org/view/431/disableCache Brett Wilton http://wiltonsoftware.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Internet Explorer Cache Problem [ CakePHP 1.2 RC3 ]
Dear Brett, thanks for the reply 3.5.3.4.3 disableCache Used to tell the user’s browser not to cache the results of the current request. This is different than view caching, covered in a later chapter. Uhm... I think is not that as i don't want to lose queries results if pressing back button... but as it says This is different than view caching... I think my answer should be in View Caching as I want to force reload the view but not lose the queries if i'm logged in. Thanks! Rohman --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Internet Explorer Cache Problem [ CakePHP 1.2 RC3 ]
hello, i have a little problem with CakePHP 1.2 RC3 and Internet Explorer 7 ( the one i tested ) when i log in on my application, i set up a $this-Session- write('myvariable','myvalue'); to indicate the user logged in, and when doing logout i delete the session variable $this-Session- del('myvariable'); in FireFox everything works like a charm, no problem at all, but in Internet Explorer if I try to access a restricted area just after logging out, i can see the page as if i was logged in... but when pressing F5 later it detects that the session is deleted and redirects me to the login page... so... the problem is an old cache version of the restricted page that still pops up instead of refreshing with a new one... does somebody know how to do it for avoiding page cache? force it to reload the page anytime? or do something for IE to work as expected? FF works perfectly. Thanks Rohman --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Warning 512 - cache problem
Hi!, I hava a serious problem with recent 1.2 RC-2 - I use svn to control my projects - at som,e point I decided to try out a new cake - when I uploaded my app (from a windows machine) and checked it out on a linux (debian+apache) machine it showed me an error saying that fiel engine is not configured properly Warning 512 - I searched the forum and found out that it is beacuse of cake's problem with urls - I commented out one line in core.php and it dissapeared but since then none of the urls works - it displays this url can not be found on the server - I wqould like to use cake 1.2 as I consider it being more advanced than 1.1 but it is now a pain for me? Why is that happening? Anyone knows? Regards, Gabriel --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Cache problem ?
Hi, I'm a newbie and I have started last week studying CakePHP with the 1.1 release. Yesterday, I upgraded my tests to 1.2 RC1 (the latest 1.2 available on the website). Up to this morning, I used view templates generated with the previous version of bake (but just corrected to work with 1.2); Now, I have just generated model, controller and view using the bake utility available with the 1.2 : works fine... but : I decided to modify the index.ctp generated : the changes are not visibles ! I even deleted the index.ctp, it's still working ! It works as if the index.ctp was cached. I check the CACHE_CHECK parameter in the core.php : set to false ! What's wrong ! Help please, it drives me crazy ! BTW : I work with IE. I copied the URL and pasted it directly in a new instance of FireFox : I get the same behavior ! So it's not a problem of my web browser. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Cache problem ?
view cache files are generated into /app/tmp/cache/views. check out the folder, if it's not empty the cache is working... gbk On jún. 20, 12:01, Marc MENDEZ [EMAIL PROTECTED] wrote: Hi, I'm a newbie and I have started last week studying CakePHP with the 1.1 release. Yesterday, I upgraded my tests to 1.2 RC1 (the latest 1.2 available on the website). Up to this morning, I used view templates generated with the previous version of bake (but just corrected to work with 1.2); Now, I have just generated model, controller and view using the bake utility available with the 1.2 : works fine... but : I decided to modify the index.ctp generated : the changes are not visibles ! I even deleted the index.ctp, it's still working ! It works as if the index.ctp was cached. I check the CACHE_CHECK parameter in the core.php : set to false ! What's wrong ! Help please, it drives me crazy ! BTW : I work with IE. I copied the URL and pasted it directly in a new instance of FireFox : I get the same behavior ! So it's not a problem of my web browser. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Cache problem ?
Yes, there are files : in models and persistents, but nothing in the view folder. I deleted everything, but I still have the same view gbk * a écrit : view cache files are generated into /app/tmp/cache/views. check out the folder, if it's not empty the cache is working... gbk On jún. 20, 12:01, Marc MENDEZ [EMAIL PROTECTED] wrote: Hi, I'm a newbie and I have started last week studying CakePHP with the 1.1 release. Yesterday, I upgraded my tests to 1.2 RC1 (the latest 1.2 available on the website). Up to this morning, I used view templates generated with the previous version of bake (but just corrected to work with 1.2); Now, I have just generated model, controller and view using the bake utility available with the 1.2 : works fine... but : I decided to modify the index.ctp generated : the changes are not visibles ! I even deleted the index.ctp, it's still working ! It works as if the index.ctp was cached. I check the CACHE_CHECK parameter in the core.php : set to false ! What's wrong ! Help please, it drives me crazy ! BTW : I work with IE. I copied the URL and pasted it directly in a new instance of FireFox : I get the same behavior ! So it's not a problem of my web browser. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Cache problem ?
I did a few tests : Any changes to index.ctp is ignored... Even worst : I renamed the view folder corresponding to the model : it's still working ! But, if I edit the index.thtml fo an other model, it works !!! The only one difference : - The old template was generated by the previous bake app; it's name *.thtml - the new one used the features of Cake 1.2 and was generated by the new bake app gbk * a écrit : view cache files are generated into /app/tmp/cache/views. check out the folder, if it's not empty the cache is working... gbk On jún. 20, 12:01, Marc MENDEZ [EMAIL PROTECTED] wrote: Hi, I'm a newbie and I have started last week studying CakePHP with the 1.1 release. Yesterday, I upgraded my tests to 1.2 RC1 (the latest 1.2 available on the website). Up to this morning, I used view templates generated with the previous version of bake (but just corrected to work with 1.2); Now, I have just generated model, controller and view using the bake utility available with the 1.2 : works fine... but : I decided to modify the index.ctp generated : the changes are not visibles ! I even deleted the index.ctp, it's still working ! It works as if the index.ctp was cached. I check the CACHE_CHECK parameter in the core.php : set to false ! What's wrong ! Help please, it drives me crazy ! BTW : I work with IE. I copied the URL and pasted it directly in a new instance of FireFox : I get the same behavior ! So it's not a problem of my web browser. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Cache problem ?
my tip is that this is not a cache issue. are you sure you are editing the correct file? On jún. 20, 14:20, Marc MENDEZ [EMAIL PROTECTED] wrote: I did a few tests : Any changes to index.ctp is ignored... Even worst : I renamed the view folder corresponding to the model : it's still working ! But, if I edit the index.thtml fo an other model, it works !!! The only one difference : - The old template was generated by the previous bake app; it's name *.thtml - the new one used the features of Cake 1.2 and was generated by the new bake app gbk * a écrit : view cache files are generated into /app/tmp/cache/views. check out the folder, if it's not empty the cache is working... gbk On jún. 20, 12:01, Marc MENDEZ [EMAIL PROTECTED] wrote: Hi, I'm a newbie and I have started last week studying CakePHP with the 1.1 release. Yesterday, I upgraded my tests to 1.2 RC1 (the latest 1.2 available on the website). Up to this morning, I used view templates generated with the previous version of bake (but just corrected to work with 1.2); Now, I have just generated model, controller and view using the bake utility available with the 1.2 : works fine... but : I decided to modify the index.ctp generated : the changes are not visibles ! I even deleted the index.ctp, it's still working ! It works as if the index.ctp was cached. I check the CACHE_CHECK parameter in the core.php : set to false ! What's wrong ! Help please, it drives me crazy ! BTW : I work with IE. I copied the URL and pasted it directly in a new instance of FireFox : I get the same behavior ! So it's not a problem of my web browser. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Cache problem ?
gbk * a écrit : my tip is that this is not a cache issue. are you sure you are editing the correct file? My table is named essais. The only one page on all my hard disk (I checked it !) dealing with this table and containg references to $paginator is in app/views/essais/index.ctp. If I search for some other informations displayed by this view in my browser, I still find this index.ctp file Anyway, there is even only one directory views : if I delete it and : - try to access to an other view : it crashes (normal, the view file does not exist anymore) - try to access to the essais view : it works !! I agree with you : it sounds as if I was not talking about the same file ! But which file !! Completely crazy ! On jún. 20, 14:20, Marc MENDEZ [EMAIL PROTECTED] wrote: I did a few tests : Any changes to index.ctp is ignored... Even worst : I renamed the view folder corresponding to the model : it's still working ! But, if I edit the index.thtml fo an other model, it works !!! The only one difference : - The old template was generated by the previous bake app; it's name *.thtml - the new one used the features of Cake 1.2 and was generated by the new bake app gbk * a écrit : view cache files are generated into /app/tmp/cache/views. check out the folder, if it's not empty the cache is working... gbk On jún. 20, 12:01, Marc MENDEZ [EMAIL PROTECTED] wrote: Hi, I'm a newbie and I have started last week studying CakePHP with the 1.1 release. Yesterday, I upgraded my tests to 1.2 RC1 (the latest 1.2 available on the website). Up to this morning, I used view templates generated with the previous version of bake (but just corrected to work with 1.2); Now, I have just generated model, controller and view using the bake utility available with the 1.2 : works fine... but : I decided to modify the index.ctp generated : the changes are not visibles ! I even deleted the index.ctp, it's still working ! It works as if the index.ctp was cached. I check the CACHE_CHECK parameter in the core.php : set to false ! What's wrong ! Help please, it drives me crazy ! BTW : I work with IE. I copied the URL and pasted it directly in a new instance of FireFox : I get the same behavior ! So it's not a problem of my web browser. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Cache problem ?
Next test : I deleted app/views/essais and run bake again. I watched the folder and found, again the 4 views files in a new essais folder. So, now, I'm sure it's the right files and the right folder. I edit the index.ctp and guess what . nothing , still the same problem ! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Cache problem ?
i have no idea... maybe there is something useful in your log files. have you checked them (webserver error log, php error log, /tmp/logs/error.log, debug.log)? gbk On jún. 20, 14:45, Marc MENDEZ [EMAIL PROTECTED] wrote: Next test : I deleted app/views/essais and run bake again. I watched the folder and found, again the 4 views files in a new essais folder. So, now, I'm sure it's the right files and the right folder. I edit the index.ctp and guess what . nothing , still the same problem ! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Cache problem ?
On Fri, Jun 20, 2008 at 8:45 AM, Marc MENDEZ [EMAIL PROTECTED] wrote: Next test : I deleted app/views/essais and run bake again. I watched the folder and found, again the 4 views files in a new essais folder. So, now, I'm sure it's the right files and the right folder. I edit the index.ctp and guess what . nothing , still the same problem ! Well, here are a few things I would try: 1) look at your web server access and error logs to make sure you're actually hitting the URL you think you are 2) delete everyting in APP/tmp/ 3) set debug to a value 0 in APP/config/core.php Hope that helps. -- Chris Hartjes Internet Loudmouth Motto for 2008: Moving from herding elephants to handling snakes... @TheKeyBoard: http://www.littlehart.net/atthekeyboard --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Cache problem ?
Can you paste the controller code at http://bin.cakephp.org ? On Fri, Jun 20, 2008 at 10:05 AM, Chris Hartjes [EMAIL PROTECTED] wrote: On Fri, Jun 20, 2008 at 8:45 AM, Marc MENDEZ [EMAIL PROTECTED] wrote: Next test : I deleted app/views/essais and run bake again. I watched the folder and found, again the 4 views files in a new essais folder. So, now, I'm sure it's the right files and the right folder. I edit the index.ctp and guess what . nothing , still the same problem ! Well, here are a few things I would try: 1) look at your web server access and error logs to make sure you're actually hitting the URL you think you are 2) delete everyting in APP/tmp/ 3) set debug to a value 0 in APP/config/core.php Hope that helps. -- Chris Hartjes Internet Loudmouth Motto for 2008: Moving from herding elephants to handling snakes... @TheKeyBoard: http://www.littlehart.net/atthekeyboard --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Cache problem ?
gbk * a écrit : i have no idea... maybe there is something useful in your log files. have you checked them (webserver error log, php error log, /tmp/logs/error.log, debug.log)? I should not work on the last day of the week When things are too obvious. Just one word : scaffolding Too stupid I am, Too stupid I remain :((( A HUUGEE Sorry for the disturb. Should think about holidays --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Cache problem
Hi, i have a problem with cakephp cahce! When i request i site (url) the site is cached to the file i can see the file in the cache folder but when i request the same site againg the cahce file is rebuilted again ... can sombody halp me pls a tried everythink sad.gif. ps: everthnik is set properly, on my localmacine everythikn goes ok but on hosting that i use is this problem --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Cake 1.2 Cache Problem - Submitting a Form doesn't Reset Cache
I'm having a sort of stupid problem. I've searched for a resolution, but I don't see anyone reporting the same issues. Maybe I'm doing something wrong. I'm using Cake's cache and I'm trying to Cache the whole controller. var $cacheAction = '+1 hour'; However, Cake now refuses to accept any form submissions. I'm assuming because on a post, it just calls back the same cached page. Any ideas from anyone? From what I've read, Cake is smart enough to clear the cache if there has been an update to the model, but it's not letting me update because it won't accept posts. Am I missing something? Or do I simply have to cache every controller except those with forms? ThanX in advance guys. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Cake 1.2 Cache Problem - Submitting a Form doesn't Reset Cache
Ok, cool. Just making sure that I wasn't doing something stupid here (as is usually the case). I guess I'll just list the controllers that I do want to cacheor do a $this-cacheAction = false; in those I don't want to cache? Either way, I love caching - server's kinda slow. On 9/28/07, guitarclap [EMAIL PROTECTED] wrote: I ran into a similar situation when I tried to cache a login page; when the form was submitted it would just simply show the same view again. I am pretty sure that this is by design - or fixed in the svn (somewhere). If you check out the file in /tmp/cache/views/ you will see why - cake caches the entire view and doesn't call the Controller::action(). IMO, cake should disregard cached views when POST is detected because POST obviously contains data that is unpredictable (ie, a user logging in). On Sep 28, 10:28 am, Baz [EMAIL PROTECTED] wrote: I'm having a sort of stupid problem. I've searched for a resolution, but I don't see anyone reporting the same issues. Maybe I'm doing something wrong. I'm using Cake's cache and I'm trying to Cache the whole controller. var $cacheAction = '+1 hour'; However, Cake now refuses to accept any form submissions. I'm assuming because on a post, it just calls back the same cached page. Any ideas from anyone? From what I've read, Cake is smart enough to clear the cache if there has been an update to the model, but it's not letting me update because it won't accept posts. Am I missing something? Or do I simply have to cache every controller except those with forms? ThanX in advance guys. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Cake 1.2 Cache Problem - Submitting a Form doesn't Reset Cache
I ran into a similar situation when I tried to cache a login page; when the form was submitted it would just simply show the same view again. I am pretty sure that this is by design - or fixed in the svn (somewhere). If you check out the file in /tmp/cache/views/ you will see why - cake caches the entire view and doesn't call the Controller::action(). IMO, cake should disregard cached views when POST is detected because POST obviously contains data that is unpredictable (ie, a user logging in). On Sep 28, 10:28 am, Baz [EMAIL PROTECTED] wrote: I'm having a sort of stupid problem. I've searched for a resolution, but I don't see anyone reporting the same issues. Maybe I'm doing something wrong. I'm using Cake's cache and I'm trying to Cache the whole controller. var $cacheAction = '+1 hour'; However, Cake now refuses to accept any form submissions. I'm assuming because on a post, it just calls back the same cached page. Any ideas from anyone? From what I've read, Cake is smart enough to clear the cache if there has been an update to the model, but it's not letting me update because it won't accept posts. Am I missing something? Or do I simply have to cache every controller except those with forms? ThanX in advance guys. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---