Author: michiel
Date: 2010-03-19 15:40:27 +0100 (Fri, 19 Mar 2010)
New Revision: 41539
Added:
speeltuin/mihxil/portal/trunk/src/main/java/org/mmbase/portal/refresh/Never.java
Modified:
speeltuin/mihxil/portal/trunk/src/main/config/builders/core/blocks.xml
Log:
another cache strategy. Never expire.
Modified: speeltuin/mihxil/portal/trunk/src/main/config/builders/core/blocks.xml
===================================================================
--- speeltuin/mihxil/portal/trunk/src/main/config/builders/core/blocks.xml
2010-03-19 13:09:33 UTC (rev 41538)
+++ speeltuin/mihxil/portal/trunk/src/main/config/builders/core/blocks.xml
2010-03-19 14:40:27 UTC (rev 41539)
@@ -80,8 +80,9 @@
<datatype base="string" xmlns="http://www.mmbase.org/xmlns/datatypes">
<default value="org.mmbase.portal.refresh.Expires" />
<enumeration>
- <entry value="org.mmbase.portal.refresh.Always" display="always" />
+ <entry value="org.mmbase.portal.refresh.Always" display="always" />
<entry value="org.mmbase.portal.refresh.Expires" display="expires" />
+ <entry value="org.mmbase.portal.refresh.Never" display="never" />
</enumeration>
</datatype>
</field>
Added:
speeltuin/mihxil/portal/trunk/src/main/java/org/mmbase/portal/refresh/Never.java
===================================================================
---
speeltuin/mihxil/portal/trunk/src/main/java/org/mmbase/portal/refresh/Never.java
(rev 0)
+++
speeltuin/mihxil/portal/trunk/src/main/java/org/mmbase/portal/refresh/Never.java
2010-03-19 14:40:27 UTC (rev 41539)
@@ -0,0 +1,28 @@
+/*
+
+This software is OSI Certified Open Source Software.
+OSI Certified is a certification mark of the Open Source Initiative.
+
+The license (Mozilla version 1.0) can be read at the MMBase site.
+See http://www.MMBase.org/license
+
+*/
+package org.mmbase.portal.refresh;
+
+import java.util.*;
+import com.opensymphony.oscache.web.*;
+import com.opensymphony.oscache.base.*;
+
+/**
+ * @author Michiel Meeuwissen
+ * @version $Id$
+ */
+public class Never implements WebEntryRefreshPolicy {
+
+ public void init(String key, String param) {
+
+ }
+ public boolean needsRefresh(CacheEntry e) {
+ return false;
+ }
+}
\ No newline at end of file
Property changes on:
speeltuin/mihxil/portal/trunk/src/main/java/org/mmbase/portal/refresh/Never.java
___________________________________________________________________
Name: svn:keywords
+ Id
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs