Re: FW: [PEAR-DEV] [PATCH] Cache's file.php

From: Date: Sat, 19 Oct 2002 10:18:59 +0000
Subject: Re: FW: [PEAR-DEV] [PATCH] Cache's file.php
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-10126@lists.php.net to get a copy of this message
Hi I see nothing wrong with adding this chregu On Fri, 18 Oct 2002, David Viner wrote: > Hi, > I sent this patch to the pear-dev list before i realized i could find your > emails in the package.xml file. what do you think about adding support for > filelocking at the cache creation time? > > i've attached the patch, and you can find it inline below. > > dave > > > -----Original Message----- > From: David Viner [mailto:dviner@yahoo-inc.com] > Sent: Friday, October 18, 2002 9:44 AM > To: pear-dev@lists.php.net > Subject: [PEAR-DEV] [PATCH] Cache's file.php > > > here's a short patch that allows users to turn on file locking when creating > a file based cache. This prevents users from having to hand edit the > file.php to turn on file locking. > > dave > > > ===== BEGIN PATCH > --- file.php 2002-10-18 09:35:36.000000000 -0700 > +++ file.php 2002-10-18 09:38:22.000000000 -0700 > @@ -88,7 +88,7 @@ > */ > function Cache_Container_file($options = '') { > if (is_array($options)) > - $this->setOptions($options, array_merge($this->allowed_options, > array('cache_dir', 'filename_prefix'))); > + $this->setOptions($options, array_merge($this->allowed_options, > array('cache_dir', 'filename_prefix','fileLocking'))); > > clearstatcache(); > if ($this->cache_dir) > ===== END PATCH > > -- nam...christian stocker adr...bremgartnerstr. 66, ch-8003 zurich pho...+41 1 451 6021 www...http://phant.ch/chregu mob...+41 76 561 8860 ema...chregu@phant.ch wor...+41 1 240 5670 gpg...0x5CE1DECB

« previous php.pear.dev (#10126) next »