Re: A patch to keep cache directory out of webroot

"Jason Judge" <[email protected]> Tue, 12 Oct 2004 13:10:29 +0100
Newsgroups gmane.comp.cms.xaraya.patches
Organization Xaraya
Message-ID <[email protected]>
"mikespub" <[email protected]> wrote in message
news:[email protected]...
> In article <[email protected]>, Jonn Beames <[email protected]>
> wrote:
> >...
> >(mostly just replacements of hardcoded var paths with calls to
> >xarCoreGetVarDirPath())
> >
> >This works, but I'm sure there are other ways to acheive the same goal.
> >  What do people say?  All are welcome to participate in the process.
> >
> >  - Jonn
> As mentioned earlier, we'll need to differentiate between "private" var/
> stuff and "public" var/ stuff in some cases. Perhaps we could use the
> xarCoreGetVarDirPath() for the regular "private" var/, and use a separate
> API for those few cases where a "public" var/something/whatever is needed
?

xarCoreGetVarDirPath('mymodule') - e.g. /home/http/var/xar
xarCoreGetVarDirPath('mymodule', 'public', 'virtual') - e.g. /documents
xarCoreGetVarDirPath('mymodule', 'public', 'real') - e.g. ~htroot/documents

?

-- JJ