]> granicus.if.org Git - php/commitdiff
- included PEAR.php
authorUlf Wendel <uw@php.net>
Mon, 17 Dec 2001 11:23:33 +0000 (11:23 +0000)
committerUlf Wendel <uw@php.net>
Mon, 17 Dec 2001 11:23:33 +0000 (11:23 +0000)
- flush(): consistent cache group defaults

pear/Cache.php

index ebb642d477f04d3004feeec5b0de3d89b72eb12e..017ec4da663769291f2037405308f6e817020b38 100644 (file)
@@ -18,7 +18,8 @@
 //
 // $Id$
 
-require_once 'Cache/Error.php';
+require_once('PEAR.php');
+require_once('Cache/Error.php');
 
 /**
 * Cache is a base class for cache implementations.
@@ -270,7 +271,7 @@ class Cache extends PEAR {
     * @param    string  cache group, if empty all groups will be flashed
     * @return   integer number of removed datasets
     */
-    function flush($group = '') {
+    function flush($group = 'default') {
         if (!$this->caching)
             return true;