Yes, that technique is used a lot. But I need to set i.e. maintenance mode which would route all requests to a page which states that the page is down for maintenance. I can of course set this in the cache and query it early in the controller, but as I stated there are other options that I cannot allow to expire. So I really need to get the option down in a permanent file instead of the volatile cache.
On Mar 28, 12:13 am, Jon Bennett <[email protected]> wrote: > Hi, > > > I am working on a website which runs with a memcache on two servers. > > The traffic to the site is routed to one of the two servers > > automatically by the hardware. The memcache makes it easy to share the > > session so I don't have to consider which machine I am on. > > > however, I need to find a way to write a configuration change to both > > servers somehow without the change disappearing when the memcache > > expires or the machine is restarted or whatever. Can it be done? > > I tend to store deployment specific configs in a switch statement in > bootstrap.php which sets things based on the hostname, you could do > something similar, perhaps on the internal IP address? > > hth, > > J > > -- > jon bennett -www.jben.net- blog.jben.net Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] 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 To unsubscribe from this group, send email to cake-php+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.
