A domain more or less equals an account or a client if you will. adam.example.com would be your application that I host for you. martin.example.com would be mine. Usually the domains will reflect a company and they would have a number of users. So it is actually not as dumb as it sounds. domain != user even though my poor example can give that impression.
One thing is that I want to keep separate logs for each domain. (Imagine searching one error log for 10 domains) I also want to avoid even the possibility that some cached data go astray. Part of this is that I also see potential problems since ome domain may not have 100% identical schema in the database at all times. I imagine occasional problems with the model-cache as a result. I also have some app-specific lockfiles and temp-dirs for uploads and need to keep these separated. All this adds up to that pointing tmp to (for example) app/domains/ example/tmp would solve like 10 little things at once instead of trying to make sure that every use of a temporary item is domain- conscious. If there is a way to set a "global" cache prefix and log prefix I would be a big step in the right direction. On Jan 20, 11:49 am, Adam Royle <[email protected]> wrote: > Can you explain why you need different tmp directories for the same > actual app? If it's for caching, etc, maybe you can use a cache prefix > dynamically? > > Cheers, > Adam > > Martin Westin wrote: > > Hi (again), > > > I want to try to host one application under several domains. > > > One Cake > > One App > > Many configs > > Many temp dirs > > > It is that last bit I get stuck on. I really want to split the tmps so > > I have one for each domain. Unfortunately defining "TMP" in > > bootstrap.php is too late. It is already set in paths.php before I get > > a chance to "take over" so to speak. > > > The only place inside the app I would be abel to do it is index.php. > > But that would be a headache all on its own hacking in a lot of domain > > parsing there. > > > Is there a less "hacky" way to point tmp somewhere else? > > > thanks > > /Martin --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
