Changeset 1883
- Timestamp:
- 04/14/08 07:41:26 (4 months ago)
- Files:
-
- branches/release-34/lib/MT/App/Search.pm (modified) (4 diffs)
- branches/release-34/lib/MT/Core.pm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/release-34/lib/MT/App/Search.pm
r1882 r1883 171 171 return; 172 172 } 173 $app->{cache_driver} = $cache_driver->new( ttl => $app->config-> ThrottleSeconds);173 $app->{cache_driver} = $cache_driver->new( ttl => $app->config->SearchCacheTTL ); 174 174 } 175 175 … … 300 300 301 301 my $cache_driver = $app->{cache_driver}; 302 $cache_driver->set( $app->{cache_keys}{count}, $count, $app->config-> ThrottleSeconds);302 $cache_driver->set( $app->{cache_keys}{count}, $count, $app->config->SearchCacheTTL ); 303 303 304 304 $count; … … 417 417 418 418 my $cache_driver = $app->{cache_driver}; 419 $cache_driver->set( $app->{cache_keys}{result}, $out, $app->config-> ThrottleSeconds);419 $cache_driver->set( $app->{cache_keys}{result}, $out, $app->config->SearchCacheTTL ); 420 420 } 421 421 … … 794 794 if ($tmpl eq 'feed') { 795 795 $app->response_code(503); 796 $app->set_header('Retry-After' => $app->config ('ThrottleSeconds'));796 $app->set_header('Retry-After' => $app->config->SearchThrottleSeconds); 797 797 $app->send_http_header("text/plain"); 798 798 $app->{no_print_body} = 1; branches/release-34/lib/MT/Core.pm
r1882 r1883 395 395 'SignOnPublicKey' => { default => '', }, 396 396 'ThrottleSeconds' => { default => 20, }, 397 'SearchCacheTTL' => { default => 20, }, 397 398 'SearchThrottleSeconds' => { default => 5 }, 398 399 'SearchThrottleIPWhitelist' => undef,
