logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

cvs: pearweb /include pear-database.php: msg#00096

Subject: cvs: pearweb /include pear-database.php
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@xxxxxxx>                                 |
    |          Martin Jansen <mj@xxxxxxx>                                  |
    +----------------------------------------------------------------------+
-   $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)));



<Prev in Thread] Current Thread [Next in Thread>