clearCache(MediumContentImpl.class);
//CacheController.clearCache("childContentCache");
try
{
ContentImpl content = (ContentImpl)object;
CacheController.clearCacheForGroup("contentCache", "content_" + content.getId());
CacheController.clearCache("rootContentCache", "root_" + content.getRepositoryId());
CacheController.clearCacheForGroup("contentVersionCache", "content_" + content.getId());
CacheController.clearCacheForGroup("childContentCache", "content_" + content.getId());
if(content.getParentContent() != null)
CacheController.clearCacheForGroup("childContentCache", "content_" + content.getParentContent().getId());
else
CacheController.clearCache("rootContentCache", "root_" + content.getRepositoryId());
}
catch (Exception e)
{
logger.warn("Error in JDOCallback:" + e.getMessage(), e);
}
}
else if(object.getClass().getName().equals(MediumContentImpl.class.getName()))
{
clearCache(SmallContentImpl.class);
clearCache(SmallishContentImpl.class);
clearCache(ContentImpl.class);
//CacheController.clearCache("childContentCache");
try
{
MediumContentImpl content = (MediumContentImpl)object;
CacheController.clearCacheForGroup("contentCache", "content_" + content.getId());
CacheController.clearCacheForGroup("contentVersionCache", "content_" + content.getId());
CacheController.clearCache("childContentCache");
if(content.getParentContentId() == null)
CacheController.clearCache("rootContentCache", "root_" + content.getRepositoryId());
}
catch (Exception e)
{
logger.warn("Error in JDOCallback:" + e.getMessage(), e);
}