You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by mg...@apache.org on 2014/04/09 09:26:49 UTC

git commit: WICKET-5554 Disable second level pages store because it is efficient only when manually configured

Repository: wicket
Updated Branches:
  refs/heads/master 1426abb90 -> c61455e9a


WICKET-5554 Disable second level pages store because it is efficient only when manually configured


Project: http://git-wip-us.apache.org/repos/asf/wicket/repo
Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/c61455e9
Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/c61455e9
Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/c61455e9

Branch: refs/heads/master
Commit: c61455e9a451d5b8af1930068492a47826cc83e4
Parents: 1426abb
Author: Martin Tzvetanov Grigorov <mg...@apache.org>
Authored: Wed Apr 9 10:24:43 2014 +0300
Committer: Martin Tzvetanov Grigorov <mg...@apache.org>
Committed: Wed Apr 9 10:24:43 2014 +0300

----------------------------------------------------------------------
 .../main/java/org/apache/wicket/settings/StoreSettings.java  | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/wicket/blob/c61455e9/wicket-core/src/main/java/org/apache/wicket/settings/StoreSettings.java
----------------------------------------------------------------------
diff --git a/wicket-core/src/main/java/org/apache/wicket/settings/StoreSettings.java b/wicket-core/src/main/java/org/apache/wicket/settings/StoreSettings.java
index 0abc379..158a679 100644
--- a/wicket-core/src/main/java/org/apache/wicket/settings/StoreSettings.java
+++ b/wicket-core/src/main/java/org/apache/wicket/settings/StoreSettings.java
@@ -38,7 +38,13 @@ import org.apache.wicket.util.lang.Bytes;
  */
 public class StoreSettings
 {
-	private static final int DEFAULT_CACHE_SIZE = 40;
+	/**
+	 * By default the second level cache is disabled.
+	 *
+	 * @see <a href="https://issues.apache.org/jira/browse/WICKET-5554">WICKET-5554</a>
+	 * @see <a href="https://cwiki.apache.org/confluence/x/qIaoAQ">Wicket Page storages</a>
+	 */
+	private static final int DEFAULT_CACHE_SIZE = 0;
 
 	private static final Bytes DEFAULT_MAX_SIZE_PER_SESSION = Bytes.megabytes(10);