@Test public void testIsCachedWithWikiConfiguration() throws Exception { this.xwikipropertiesConfiguration.setProperty("core.renderingcache.enabled", true); this.wikiConfiguration.setProperty("core.renderingcache.enabled", true); this.wikiConfiguration.setProperty("core.renderingcache.documents", Arrays.asList("wiki:space.*", "wrongreference")); Assert.assertTrue(this.configuration.isCached(this.documentReference)); this.wikiConfiguration.setProperty("core.renderingcache.documents", Arrays.asList("space.*", "wrongreference")); Assert.assertTrue(this.configuration.isCached(this.documentReference)); }
@Override public boolean isCached(DocumentReference documentReference) { if (documentReference != null && isFarmEnabled()) { if (isCachedInFarm(documentReference)) { return true; } return isCachedInWiki(documentReference); } return false; }
DefaultRenderingCacheConfiguration implements RenderingCacheConfiguration { @Override public boolean isCached(DocumentReference documentReference) { if (documentReference != null && isFarmEnabled()) { if (isCachedInFarm(documentReference)) { return true; } return isCachedInWiki(documentReference); } return false; } }
DefaultRenderingCacheConfiguration implements RenderingCacheConfiguration { @Override public boolean isCached(DocumentReference documentReference) { if (documentReference != null && isFarmEnabled()) { if (isCachedInFarm(documentReference)) { return true; } return isCachedInWiki(documentReference); } return false; }  }
DefaultRenderingCacheConfiguration implements RenderingCacheConfiguration { @Override public boolean isCached(DocumentReference documentReference) { if (documentReference != null && isFarmEnabled()) { if (isCachedInFarm(documentReference)) { return true; } return isCachedInWiki(documentReference); } return false; }  @Override boolean isEnabled(); boolean isFarmEnabled(); boolean isWikiEnabled(); @Override int getDuration(); @Override int getSize(); @Override boolean isCached(DocumentReference documentReference); boolean isCachedInWiki(DocumentReference documentReference); }
DefaultRenderingCacheConfiguration implements RenderingCacheConfiguration { @Override public boolean isCached(DocumentReference documentReference) { if (documentReference != null && isFarmEnabled()) { if (isCachedInFarm(documentReference)) { return true; } return isCachedInWiki(documentReference); } return false; }  @Override boolean isEnabled(); boolean isFarmEnabled(); boolean isWikiEnabled(); @Override int getDuration(); @Override int getSize(); @Override boolean isCached(DocumentReference documentReference); boolean isCachedInWiki(DocumentReference documentReference);  }