| version 1.6, 2006/01/05 11:15:15 |
version 1.7, 2006/01/25 15:09:05 |
| Line 86 $gallery_config = { # {{{ |
|
| Line 86 $gallery_config = { # {{{ |
|
| GalleryIconsURI => 'images/icons/gallery', |
GalleryIconsURI => 'images/icons/gallery', |
| GalleryRootPath => "$FindBin::Bin/gallery/", |
GalleryRootPath => "$FindBin::Bin/gallery/", |
| GalleryDocLocation => '/gallery', |
GalleryDocLocation => '/gallery', |
| GalleryCacheDir => "/tmp/fastcig-gallery-cache-$EUID", |
GalleryCacheDir => "$FindBin::Bin/cache/", |
| |
+ GalleryDirectCacheAccess => '/cache', |
| GallerySizes => [ qw(320 640 800) ], |
GallerySizes => [ qw(320 640 800) ], |
| GallerySlideshowIntervals => [ qw(2 3 5 10 30) ], |
GallerySlideshowIntervals => [ qw(2 3 5 10 30) ], |
| GalleryThumbnailSize => '140x105', |
GalleryThumbnailSize => '140x105', |
| Line 212 while ( $config->run() && ($req->Accept( |
|
| Line 213 while ( $config->run() && ($req->Accept( |
|
| $gallery_data = $gallery->handler(\%query, \%cookie); |
$gallery_data = $gallery->handler(\%query, \%cookie); |
| if (defined($gallery_data) |
if (defined($gallery_data) |
| and ref($gallery_data) eq 'HASH' |
and ref($gallery_data) eq 'HASH' |
| and !exists($gallery_data->{error})) { |
and !exists($gallery_data->{error}) |
| |
and $gallery_data->{use_cache} == 1 |
| |
) { |
| $gallery_cache->{$cache_time}->{$cache_key} = $gallery_data; |
$gallery_cache->{$cache_time}->{$cache_key} = $gallery_data; |
| } |
} |
| else { |
elsif (exists($gallery_data->{error})) { |
| warn "NOT using cache, error is: " . Dumper($gallery_data); |
warn "NOT using cache, error is: " . Dumper($gallery_data); |
| } |
} |
| } |
} |