Skip to content

Commit 9c6b20b

Browse files
committed
Build: Remove automatic purging of WordPress pages
The new releases.jquery.com has a short cache expiry, similar to other content sites and thus should no longer needed this. During the transition, release managers can purge by hand when needed. Ref https://github.com/jquery/infrastructure/issues/474.
1 parent 0273fa8 commit 9c6b20b

1 file changed

Lines changed: 1 addition & 28 deletions

File tree

Gruntfile.js

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -440,37 +440,10 @@ grunt.registerTask( "build-index", function() {
440440
JSON.stringify( data, null, 2 ) );
441441
} );
442442

443-
grunt.registerTask( "reload-listings", function() {
444-
var done = this.async(),
445-
host = "http://" + grunt.config( "wordpress" ).url,
446-
paths = ["/", "/jquery/", "/ui/", "/mobile/", "/color/", "/qunit/", "/pep/"],
447-
waiting = paths.length;
448-
449-
paths.forEach( function( path ) {
450-
path = host + path;
451-
http.get( path + "?reload", function( response ) {
452-
if ( response.statusCode >= 400 ) {
453-
grunt.log.error( "Error reloading " + path );
454-
grunt.log.error( "Status code: " + response.statusCode );
455-
return done( false );
456-
}
457-
458-
grunt.log.writeln( "Successfully reloaded " + path );
459-
if ( !--waiting ) {
460-
done();
461-
}
462-
} ).on( "error", function( error ) {
463-
grunt.log.error( "Error loading " + path );
464-
grunt.log.error( error );
465-
done( false );
466-
} );
467-
} );
468-
} );
469-
470443
// The "grunt deploy" command is automatically invoked on git-commit by the server that
471444
// will deploy the WordPress site.
472445
// Task tree: "deploy" > "wordpress-deploy" > "build-wordpress" > "build".
473446
grunt.registerTask( "build", ["sri:generate", "build-index", "build-resources"] );
474-
grunt.registerTask( "deploy", ["wordpress-deploy", "reload-listings"] );
447+
grunt.registerTask( "deploy", ["wordpress-deploy"] );
475448

476449
};

0 commit comments

Comments
 (0)