Re: A patch to keep cache directory out of webroot
Jonn Beames <[email protected]> Tue, 12 Oct 2004 22:39:43 -0700
| Newsgroups | gmane.comp.cms.xaraya.patches |
|---|---|
| Organization | Xaraya |
| Message-ID | <[email protected]> |
jojodee wrote: > "Jonn Beames" <[email protected]> wrote in message > news:[email protected]... >> jojodee wrote: >>> [...] > >> var is a system directory for storing rewritable system data, all >> rewritable system data, not stored in the database, should be under it. > >> site directories should be under the system var directory. The idea of >> making them configurable independently and movable all over the place >> offers little value and makes xaraya unnecessarily messy. > > No, not at all. Having everything pushed under one var directory, in my > mind makes it very messy, and not easily upgradeable on a site by site > basis. It also makes certain types of multisite setups very difficult if > not impossible. It would be useful to have each site with their own > 'directory' tree and very organized in my mind. > I didn't say you can't have site specific data/files in a site specific directory. On the contrary, I fully agree with you that in the mythical multisite setup, each site should have its own data/files directory. What I am saying is that each of these site directories should be under the system's var directory. So, in a normal system you have: var/cache var/logs var/uploads In a multisites setup you have: var/sitea/cache var/sitea/logs var/sitea/uploads var/siteb/cache var/siteb/logs var/siteb/uploads > Why should it be under the system var directory? This makes it very > difficult for configuring multisites especially where we want them in a > subdirectory in another "webspace". > What are you talking about? The whole point of multisites is running a bunch of sites from a single index.php, which only exists in one webspace. If you are talking about virtual webspaces for each site - yes, that sounds great, but why would you need to move them out of the system var? > One of the biggest requirements i would also have is that a site is easy > to backup/upgrade. Having site data under one directory, would make that > very > easy, and not mixed with other site specific data. I think we also need > to endeavor to ensure Xaraya is kept usable on multiple platforms, in > situations where not all users have their own server to do as they wish. > Where did you get the idea that a system var makes xaraya unusable on multiple platforms? The whole idea of storing all writable directories in one place that can be moved outside of the webroot came up so that we can make xaraya as secure on IIS as it can be on apache. > my 5 cents :) > > Jo > >> my 2 cents. >> >> - Jonn no comment.