Date: Saturday December 29, 2001 @ 16:24
Author: matt
Update of /home/cvs/AxKit/lib/Apache/AxKit
In directory ted:/home/matt/Perl/AxKit/lib/Apache/AxKit
Modified Files:
Cache.pm
Log Message:
Moved directory creation order around so it will actually work on a new installation
(d'oh!)
Index: Cache.pm
===================================================================
RCS file: /home/cvs/AxKit/lib/Apache/AxKit/Cache.pm,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -r1.28 -r1.29
--- Cache.pm 2001/11/20 20:59:45 1.28
+++ Cache.pm 2001/12/29 16:24:14 1.29
@@ -1,4 +1,4 @@
-# $Id: Cache.pm,v 1.28 2001/11/20 20:59:45 matt Exp $
+# $Id: Cache.pm,v 1.29 2001/12/29 16:24:14 matt Exp $
package Apache::AxKit::Cache;
use strict;
@@ -41,31 +41,33 @@
my $no_cache;
- if (!-e "$cachedir/$primary") {
- if (!mkdir("$cachedir/$primary", 0777)) {
- AxKit::Debug(1, "Can't create cache directory '$cachedir/$primary': $!");
- $no_cache = 1;
- }
- }
-
- if (!-e "$cachedir/$primary/$secondary") {
- if (!mkdir("$cachedir/$primary/$secondary", 0777)) {
- AxKit::Debug(1, "Can't create cache directory
'$cachedir/$primary/$secondary': $!");
- $no_cache = 1;
- }
- }
-
if ($AxKit::Cfg->NoCache()) {
$no_cache = 1;
}
- if (!$no_cache && !-e $cachedir) {
- if (!mkdir($cachedir, 0777)) {
- AxKit::Debug(2, "Can't create cache directory '$cachedir': $!");
- $no_cache = 1;
- }
- }
-
+ if (!$no_cache) {
+ if (!-e $cachedir) {
+ if (!mkdir($cachedir, 0777)) {
+ AxKit::Debug(2, "Can't create cache directory '$cachedir': $!");
+ $no_cache = 1;
+ }
+ }
+
+ if (!-e "$cachedir/$primary") {
+ if (!mkdir("$cachedir/$primary", 0777)) {
+ AxKit::Debug(1, "Can't create cache directory '$cachedir/$primary':
+$!");
+ $no_cache = 1;
+ }
+ }
+
+ if (!-e "$cachedir/$primary/$secondary") {
+ if (!mkdir("$cachedir/$primary/$secondary", 0777)) {
+ AxKit::Debug(1, "Can't create cache directory
+'$cachedir/$primary/$secondary': $!");
+ $no_cache = 1;
+ }
+ }
+ }
+
my $self = bless {
apache => $r,
key => $key,
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]