You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by GitBox <gi...@apache.org> on 2019/01/16 18:44:26 UTC
[GitHub] rawlinp commented on a change in pull request #3228: Optimize
regex_revalidate.config API endpoint
rawlinp commented on a change in pull request #3228: Optimize regex_revalidate.config API endpoint
URL: https://github.com/apache/trafficcontrol/pull/3228#discussion_r248405152
##########
File path: traffic_ops/app/lib/API/Configs/ApacheTrafficServer.pm
##########
@@ -1803,15 +1811,11 @@ sub regex_revalidate_dot_config {
}
my $asset_url = $row->asset_url;
- my $job_cdn_id = $row->job_deliveryservice->cdn_id;
- if ( $cdn_obj->id == $job_cdn_id ) {
-
- # if there are multipe with same re, pick the longes lasting.
- if ( !defined( $regex_time{ $row->asset_url } )
- || ( defined( $regex_time{ $row->asset_url } ) && $purge_end > $regex_time{ $row->asset_url } ) )
- {
- $regex_time{ $row->asset_url } = $purge_end;
- }
+ # if there are multipe with same re, pick the longes lasting.
Review comment:
done
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services