CmsFlexController controller = (CmsFlexController)getJsp().getRequest().getAttribute( CmsFlexController.ATTRIBUTE_NAME); CmsFlexCache cache = controller.getCmsCache();
CmsFlexCache cache = controller.getCmsCache();
CmsFlexCache cache = controller.getCmsCache();
m_canCache = (((m_isOnline || m_controller.getCmsCache().cacheOffline()) && !nocachepara) || dorecompile); m_doRecompile = dorecompile; if (LOG.isDebugEnabled()) {
m_canCache = ((((m_isOnline && m_controller.getCmsCache().isEnabled()) || (!m_isOnline && m_controller.getCmsCache().cacheOffline())) && !nocachepara) || dorecompile); m_doRecompile = dorecompile; if (LOG.isDebugEnabled()) {
/** * Initializes the cache object.<p> */ protected void initCacheObject() { CmsFlexController controller = (CmsFlexController)getJsp().getRequest().getAttribute( CmsFlexController.ATTRIBUTE_NAME); CmsFlexCache cache = controller.getCmsCache(); setVariations("" + cache.size()); setKeys("" + cache.keySize()); CmsLruCache entryLruCache = cache.getEntryLruCache(); if (entryLruCache != null) { Locale locale = getLocale(); setMaxSize(CmsFileUtil.formatFilesize(entryLruCache.getMaxCacheCosts(), locale)); setAvgSize(CmsFileUtil.formatFilesize(entryLruCache.getAvgCacheCosts(), locale)); setCurSize(CmsFileUtil.formatFilesize(entryLruCache.getObjectCosts(), locale)); } }
/** * Creates the list of widgets for this dialog.<p> */ @Override protected void defineWidgets() { setKeyPrefix(KEY_PREFIX); // initialize the cache object to use for the dialog CmsFlexController controller = (CmsFlexController)getJsp().getRequest().getAttribute( CmsFlexController.ATTRIBUTE_NAME); CmsFlexCache cache = controller.getCmsCache(); setOffline(true); setOnline(true); setMode(MODE_ALL); // widgets to display if (cache.cacheOffline()) { addWidget(new CmsWidgetDialogParameter(this, "offline", PAGES[0], new CmsCheckboxWidget())); } addWidget(new CmsWidgetDialogParameter(this, "online", PAGES[0], new CmsCheckboxWidget())); addWidget(new CmsWidgetDialogParameter(this, "mode", PAGES[0], new CmsRadioSelectWidget(getModes()))); }
clone, clone.readResource(relPath), ori.getCmsCache(), getRequest(), getResponse(),
CmsResource resource) throws ServletException, IOException { CmsFlexCache cache = controller.getCmsCache();
CmsResource resource) throws ServletException, IOException { CmsFlexCache cache = controller.getCmsCache();