Re: A patch to keep cache directory out of webroot

Jonn Beames <[email protected]> Mon, 04 Oct 2004 11:10:12 -0700
Newsgroups gmane.comp.cms.xaraya.patches
Organization Xaraya
Message-ID <[email protected]>
mikespub wrote:
> [...]
> 
> Specifically for xarCache, this configuration variable should then be
> made available through config.caching.php as well (whenever the
> xarcachemanager module updates it, or when the value changes),
> so that it can be used without core loading too. But this concerns
> only the var/cache/config.caching.php file and the location of the
> var/cache/output directory - the first needs to be known in advance,
> while the second can be defined in config.caching.php.
> 
> Mike.

This summarizes the catch 22 that currently has the caching directory 
hardcoded in the call to xarCache_init in index.php - we need to, at 
least, know where to find the config.caching.php file before we can load 
any other config options into xarCache.

The same will be true of config.system.php - it needs to be somewhere 
predictable to get things started.

First thought that comes to me: a pre-core loader and a 
config.minial.php file in the root directory that has (maybe no more 
than) one value - the location of the var dir.

I'm pretty sure others (Johnny and Marcel?) were talking about solving 
this problem before - do we know what the plan was then?

  - Jonn