Sangcheol Hwang 2013-01-18
fix out of memory error at travis
@50fbec1ed9ea41e8f0e4d2507d592683ad0f649d
.travis.yml
--- .travis.yml
+++ .travis.yml
@@ -4,4 +4,4 @@
 before_script: 
   - wget http://download.playframework.org/releases/play-${PLAY_VERSION}.zip
   - unzip -q play-${PLAY_VERSION}.zip
-script: play-${PLAY_VERSION}/play test
+script: play-${PLAY_VERSION}/play test -Dxmx=512
app/controllers/ProjectApp.java
--- app/controllers/ProjectApp.java
+++ app/controllers/ProjectApp.java
@@ -49,7 +49,8 @@
         return ok(projectHome.render("title.projectHome",
                 getProject(userName, projectName)));
     }
-
+    
+    @Cached(key = "newProjectForm")
     public static Result newProjectForm() {
         if (session().get(UserApp.SESSION_USERID) == null) {
             flash(Constants.WARNING, "user.login.alert");
app/controllers/UserApp.java
--- app/controllers/UserApp.java
+++ app/controllers/UserApp.java
@@ -46,20 +46,19 @@
 
 	public static User anonymous = new User();
 
-//	@Cached(key = "loginForm")
+	@Cached(key = "loginForm")
 	public static Result loginForm() {
 		return ok(login.render("title.login", form(User.class)));
 	}
 
 	public static Result logout() {
 		session().clear();
-		response().discardCookies(TOKEN);
+		response().discardCookie(TOKEN);
 
 		flash(Constants.SUCCESS, "user.logout.success");
 		return redirect(routes.Application.index());
 	}
 
-//	@Cached(key = "login")
 	public static Result login() {
 		Form<User> userForm = form(User.class).bindFromRequest();
 		if(userForm.hasErrors()) {
@@ -156,6 +155,7 @@
 		Logger.debug("remember me enabled");
 	}
 
+	@Cached(key="signupForm")
 	public static Result signupForm() {
 		return ok(signup.render("title.signup", form(User.class)));
 	}
Add a comment
List