cvs: pearweb /include pear-database.php

From: Date: Sun, 17 Apr 2005 04:23:43 +0000
Subject: cvs: pearweb /include pear-database.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-cvs+get-31214@lists.php.net to get a copy of this message
cellog Sun Apr 17 00:23:43 2005 EDT Modified files: /pearweb/include pear-database.php Log: add cache clearing for whole set of missing package.listAll possibilities add ability to turn off listing of pecl packages even through xmlrpc, while preserving BC http://cvs.php.net/diff.php/pearweb/include/pear-database.php?r1=1.275&r2=1.276&ty=u Index: pearweb/include/pear-database.php diff -u pearweb/include/pear-database.php:1.275 pearweb/include/pear-database.php:1.276 --- pearweb/include/pear-database.php:1.275 Thu Mar 24 10:41:25 2005 +++ pearweb/include/pear-database.php Sun Apr 17 00:23:42 2005 @@ -17,7 +17,7 @@ | Tomas V.V.Cox <cox@php.net> | | Martin Jansen <mj@php.net> | +----------------------------------------------------------------------+ - $Id: pear-database.php,v 1.275 2005/03/24 15:41:25 cellog Exp $ + $Id: pear-database.php,v 1.276 2005/04/17 04:23:42 cellog Exp $ */ require_once 'DB/storage.php'; @@ -797,11 +797,11 @@ * @param boolean List also PECL packages * @return array */ - function listAll($released_only = true, $stable_only = true, $include_pecl = false) + function listAll($released_only = true, $stable_only = true, $include_pecl = null) { global $dbh, $HTTP_RAW_POST_DATA; - if (isset($HTTP_RAW_POST_DATA)) { + if ($include_pecl === null && isset($HTTP_RAW_POST_DATA)) { $include_pecl = true; } @@ -1800,6 +1800,11 @@ $cache->remove('package.listAll', array(false, false, true)); $cache->remove('package.listAll', array(false, false, false)); + $cache->remove('package.listAll', array(true, true, true)); + $cache->remove('package.listAll', array(true, true, false)); + $cache->remove('package.listAll', array(true, false, true)); + $cache->remove('package.listAll', array(true, false, false)); + // make sure pecl is also removed $cache->remove('package.info', array($package, null)); $cache->remove('package.info', array($package, array(null, null, true)));

« previous php.pear.cvs (#31214) next »