Show
Ignore:
Timestamp:
05/07/08 16:40:13 (3 months ago)
Author:
erickson
Message:

added content handler no longer tries to pull from the cache when the plugin cannot return data for that type of call anyway. removed Amazon stub methods because they 1. should have returned explicit undef, but more importantly because having them around means extra calls to memcache

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/Open-ILS/src/perlmods/OpenILS/WWW/AddedContent.pm

    r8079 r9525  
    8787 
    8888    return Apache2::Const::NOT_FOUND unless $handler and $type and $format and $key; 
    89     return $res if defined($res = $AC->serve_from_cache($type, $format, $key)); 
    90     return Apache2::Const::NOT_FOUND unless $AC->lookups_enabled; 
    9189 
    9290    my $err; 
     
    9593 
    9694    return Apache2::Const::NOT_FOUND unless $handler->can($method); 
     95    return $res if defined($res = $AC->serve_from_cache($type, $format, $key)); 
     96    return Apache2::Const::NOT_FOUND unless $AC->lookups_enabled; 
    9797 
    9898    try {