java.lang.Object
com.opencms.template.cache.CmsElementCache
- public class CmsElementCache
- extends java.lang.Object
This is the starting class for OpenCms element cache. Element cache was implemented for
performance issues. The idea is to create a flat hirarchie of elements that
can be accessed fast and efficient for the frontend users in the online
project.
On publishing-time the data in the element cache area will be created or updated.
All inefficiant XML-files are changed to the efficient element cache data
structure. For createing the content no XML-parsing and DOM-accessing is
neccessairy.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_uriLocator
private CmsUriLocator m_uriLocator
m_elementLocator
private CmsElementLocator m_elementLocator
m_variantCachesize
private int m_variantCachesize
CmsElementCache
public CmsElementCache()
CmsElementCache
public CmsElementCache(int uriCachesize,
int elementCachesize,
int variantCachesize)
getUriLocator
public CmsUriLocator getUriLocator()
getElementLocator
public CmsElementLocator getElementLocator()
getVariantCachesize
public int getVariantCachesize()
- returns the size of the variant cache for each element.
cleanupCache
public void cleanupCache(java.util.Vector changedResources,
java.util.Vector changedModuleRes)
- Deletes all the content of the caches that depend on the changed resources
after publishProject.
clearCache
public void clearCache()
- Clears the uri and the element cache compleatly.
and the extern dependencies.
printCacheInfo
public void printCacheInfo(int which)
- prints the cache info in the errorlog.
getCacheInfo
public java.util.Vector getCacheInfo()
- Gets the Information of max size and size for the uriCache and the
element cache.
callCanonicalRoot
public byte[] callCanonicalRoot(com.opencms.file.CmsObject cms,
java.util.Hashtable parameters)
throws com.opencms.core.CmsException