Skip to content

Commit dc0fd66

Browse files
committed
added clear cache on stop for #418
1 parent 8a540f5 commit dc0fd66

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/swagger-play2/app/play/modules/swagger/SwaggerPlugin.scala

+2-2
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,11 @@ class SwaggerPlugin(application: Application) extends Plugin {
7171
val docRoot = ""
7272
ApiListingCache.listing(docRoot)
7373

74-
Logger("swagger").info("Plugin - initialisation done")
74+
Logger("swagger").info("Plugin - initialization done")
7575
}
7676

7777
override def onStop() {
78-
// we may need to tidy up resources here
78+
ApiListingCache.cache = None
7979
Logger("swagger").info("Plugin - stopped");
8080
}
8181
}

0 commit comments

Comments
 (0)