cvs: php4 /pear/Cache URL.php
| From: | Sebastian Bergmann | Date: | Sun, 20 May 2001 14:28:29 +0000 |
| Subject: | cvs: php4 /pear/Cache URL.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-152@lists.php.net to get a copy of this message | ||
sbergmann Sun May 20 07:28:29 2001 EDT
Modified files:
/php4/pear/Cache URL.php
Log:
Oops.
Index: php4/pear/Cache/URL.php
diff -u php4/pear/Cache/URL.php:1.1 php4/pear/Cache/URL.php:1.2
--- php4/pear/Cache/URL.php:1.1 Fri Apr 6 01:28:20 2001
+++ php4/pear/Cache/URL.php Sun May 20 07:28:29 2001
@@ -10,8 +10,8 @@
*
* require_once "Cache/URL.php";
*
-* $FUNCTION_CACHE_CONTAINER = "file";
-* $FUNCTION_CACHE_CONTAINER_OPTIONS = array(
+* $URL_CACHE_CONTAINER = "file";
+* $URL_CACHE_CONTAINER_OPTIONS = array(
* "cache_dir" => "/tmp/",
* "filename_prefix" => "cache_");
*
@@ -21,7 +21,7 @@
* @module URL_Cache
* @modulegroup URL_Cache
* @package Cache
-* @version $Revision: 1.1 $
+* @version $Revision: 1.2 $
* @access public
*/
@@ -41,7 +41,7 @@
// | Authors: Sebastian Bergmann <sb@sebastian-bergmann.de> |
// +----------------------------------------------------------------------+
//
-// $Id: URL.php,v 1.1 2001/04/06 08:28:20 sbergmann Exp $
+// $Id: URL.php,v 1.2 2001/05/20 14:28:29 sbergmann Exp $
require_once 'Cache.php';
@@ -54,12 +54,12 @@
* @access public
*/
function get_cached_url($url, $expires = 0) {
- global $FUNCTION_CACHE_CONTAINER, $FUNCTION_CACHE_CONTAINER_OPTIONS;
+ global $URL_CACHE_CONTAINER, $URL_CACHE_CONTAINER_OPTIONS;
static $cache;
// create Cache object, if needed
if (!is_object($cache)) {
- $cache = new Cache($FUNCTION_CACHE_CONTAINER, $FUNCTION_CACHE_CONTAINER_OPTIONS);
+ $cache = new Cache($URL_CACHE_CONTAINER, $URL_CACHE_CONTAINER_OPTIONS);
}
// generate Cache ID