[Petal] Instead of /tmp directory?

Chris Croome chris at webarchitects.co.uk
Wed Jun 21 09:48:14 BST 2006


Hi

On Wed 17-Aug-2005 at 12:26:10AM +0100, Bruno Postle wrote:
> On Fri 12-Aug-2005 at 09:38 -0400, Josh Narins wrote:
> > 
> > I was hoping you could tell me what option I could change so that
> > the petal_cache and petal_debug files didn't end up in /tmp. I'd
> > like to change them to /tmp/petal, if that helps (doubtful, but one
> > never knows).
> 
> Petal uses File::Spec->tmpdir() for this, so you can change the
> directory for the cached templates by setting $ENV{TMPDIR}.

This *used* to work for me, but it doesn't seem to any more, on Fedora
Core 5 if I add this to the apache conf file:

  # Petal cache files
  PerlSetEnv TMPDIR "/var/tmp/"
  SetEnv TMPDIR "/var/tmp/"

The cache files are still written to /tmp

I can confirm that the TMPDIR env is set by creating a .shtml file with
this in it:

  <pre>
    <!--#printenv -->
  </pre>

And when the .shtml file is accessed it has this value:

  TMPDIR=/var/tmp/

Has anyone else found this? Any suggestions about how to address this?
Perhaps Petal needs to have it's own env var for where cache and debug
files are written?

Chris

-- 
Chris Croome                               <chris at webarchitects.co.uk>
web design                             http://www.webarchitects.co.uk/ 
web content management                               http://mkdoc.com/   


More information about the Petal mailing list