Re: A patch to keep cache directory out of webroot

"jojodee" <jojodee-8nna1qhvBBM9QQeoy3GH/[email protected]> Wed, 13 Oct 2004 11:17:26 +0930
Newsgroups gmane.comp.cms.xaraya.patches
Organization Xaraya
Message-ID <[email protected]>
"Jonn Beames" <[email protected]> wrote in message 
news:[email protected]...
> jojodee wrote:
>> "Jonn Beames" <[email protected]> wrote in message 
>> news:[email protected]...
>>
>> Don't want things to get mixed up - ie we are talking about a cache 
>> directory, and we are also talking about somewhere to store our 
>> config.system.php file  for xaraya install and xaraya boot ...
>>
> This seems to be a common misconception.  No, we are not taking about the 
> cache directory and the config file.

I could have listed a lot of things - but yes we are also talking about 
those and more but i left it with a "..."  This thread needs to encompass 
more than focusing on cache files and which directory they are in to solve 
the problem.

>  We are talking about moving  all writable directories out of the webroot. 
> I believe the confusion  stems from the fact that Alla only noted 
> var/cache as a writable  directory.  However, var can hold many, and 
> potentially many more writable directories.

Yes, exactly. That is what I would not want if you have read my post. And 
that is what i'm saying is adding to the confusion.  This whole thing needs 
to be thought about in a more general way and be more inclusive of other 
Xaraya file, module, site and data directory needs.

> Commonly understood UNIX definition of the var directory
> var - Variable data. Data files that are continually being recreated or 
> updated.

We are working with a cross platform application - not specific to unix or 
*nix in general. So I prefer to think we should not be concentrating on 
discussions that only apply to UNIX.  I'm not interested in commonly 
understood UNIX definition of the var directory which we learn about in high 
school. I'm interested in the best outcome for storing writeable web and non 
web accessible files - the whole gamut of them not just related to caching 
which is only a part of that. I'm not interested in the name of the 
directory but would like peoples opinion of what should and should not go in 
the var directory and alternatives.

> It is the place where the system stores cache files, mail and print 
> spools, log files, data files from running appications, system state data, 
> etc.

I'm saying that in Xaraya this should not necessarily be the case and I 
suggested something else. Your comments on the subject of my post would be 
appreciated.

Jo

> The subdirectories should be clearly named to define what can be found in 
> them.
>
>  - Jonn