Mail Index


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ApacheGallery] help with chached files needed!



On Thu, Jun 17, 2004 at 02:44:12PM +0400, Evgeny Stepanov wrote:
> 
>   if (MP2) {
>      $r->sendfile($file);
>   }
>   else {
>      $r->path_info('');
>      $r->filename($file);
>   }
> 
> >>here!!  return MP2 ? Apache::DECLINED : Apache::Constants::DECLINED;
> 
> why there is DECLINED here? as far as i understand, cache_dir() dies

Because A::G rewrites the request and then declines, thus making Apache
serve the correct file itself.

> if it cannot create thumbnails. So, if there is no thumbnail and it
> cannot be created, script dies with an error. I think there is no
> sense in DECLINED here. I wrote Apache::OK there
> and Apache::Constants::OK. Messages from apache errorlog disappeared,
> now it work as expected (by me,anyway).

Under which apache version? In apache 1.x this would probably break a
lot of error handling in Apache.

-- 
Andreas Plesner Jacobsen | WYSIWYG:
                         |         What You See Is What You Get.
_______________________________________________
users mailing list
users@xxxxxxxxxxxxxxxx
http://ufo.hestdesign.com/cgi-bin/mailman/listinfo/agusers