You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jspwiki.apache.org by ju...@apache.org on 2018/03/25 21:16:08 UTC
[jspwiki] 01/02: Further fix on JSPWIKI-1064 - Link to non-existing
page doesn't change if linked page is created,
not all page caches where properly flushed.
This is an automated email from the ASF dual-hosted git repository.
juanpablo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jspwiki.git
commit 3e3b53cfc71687ec5c5d147f2091e6563da8f2e8
Author: juanpablo <ju...@apache.org>
AuthorDate: Sun Mar 25 23:15:31 2018 +0200
Further fix on JSPWIKI-1064 - Link to non-existing page doesn't change if linked page is created, not all page caches where properly flushed.
---
.../src/main/java/org/apache/wiki/render/RenderingManager.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/jspwiki-war/src/main/java/org/apache/wiki/render/RenderingManager.java b/jspwiki-war/src/main/java/org/apache/wiki/render/RenderingManager.java
index aaa123a..6af59f1 100644
--- a/jspwiki-war/src/main/java/org/apache/wiki/render/RenderingManager.java
+++ b/jspwiki-war/src/main/java/org/apache/wiki/render/RenderingManager.java
@@ -101,8 +101,8 @@ public class RenderingManager implements WikiEventListener, InternalModule
public static final String WYSIWYG_EDITOR_MODE = "WYSIWYG_EDITOR_MODE";
/**
- * Variable name which tells whether plugins should be executed or not. Value
- * can be either Boolean.TRUE or Boolean.FALSE.
+ * Variable name which tells whether plugins should be executed or not. Value can be either
+ * {@code Boolean.TRUE} or {@code Boolean.FALSE}. While not set it's value is {@code null}
*/
public static final String VAR_EXECUTE_PLUGINS = "_PluginContent.execute";
@@ -368,6 +368,7 @@ public class RenderingManager implements WikiEventListener, InternalModule
// as there is a new version of the page expire both plugin and pluginless versions of the old page
m_documentCache.remove( page + VERSION_DELIMITER + WikiPageProvider.LATEST_VERSION + VERSION_DELIMITER + Boolean.FALSE );
m_documentCache.remove( page + VERSION_DELIMITER + WikiPageProvider.LATEST_VERSION + VERSION_DELIMITER + Boolean.TRUE );
+ m_documentCache.remove( page + VERSION_DELIMITER + WikiPageProvider.LATEST_VERSION + VERSION_DELIMITER + null );
}
}
}
--
To stop receiving notification emails like this one, please contact
juanpablo@apache.org.