Skip to content

Commit

Permalink
Merge pull request sakaiproject#1791 from buckett/KNL-1417
Browse files Browse the repository at this point in the history
KNL-1417 Removed unused content cache.
  • Loading branch information
buckett committed Feb 26, 2016
2 parents ffb7c81 + b864c94 commit 9137112
Showing 1 changed file with 0 additions and 37 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -231,9 +231,6 @@ public abstract class BaseContentService implements ContentHostingService, Cache
/** A Storage object for persistent storage. */
protected Storage m_storage = null;

/** A Cache for this service - ContentResource and ContentCollection keyed by reference. */
protected Cache m_cache = null;

/**
* The quota for content resource body bytes (in Kbytes) for any hierarchy in the /user/ or /group/ areas, or 0 if quotas are not enforced.
*/
Expand Down Expand Up @@ -541,26 +538,6 @@ public void setUserDirectoryService(UserDirectoryService userDirectoryService) {
this.userDirectoryService = userDirectoryService;
}

/** Configuration: cache, or not. */
protected boolean m_caching = false;

/**
* Configuration: cache, or not.
*
* @param value
* True/false
*/
public void setCaching(String value)
{
try
{
m_caching = Boolean.valueOf(value).booleanValue();
}
catch (Exception t)
{
}
}

/** Configuration: Do we protect attachments in sites with the site AuthZGroup. */
protected boolean m_siteAttachments = true; // Default to true for Sakai 2.5 and later

Expand Down Expand Up @@ -873,15 +850,6 @@ public void init()

M_log.info("Loaded Storage as "+m_storage+" for "+this);

// make the cache
if (m_caching)
{
m_cache = m_memoryService
.newCache(
"org.sakaiproject.content.api.ContentHostingService.cache",
this, getAccessPoint(true));
}

// register a transient notification for resources
NotificationEdit edit = m_notificationService.addTransientNotification();

Expand Down Expand Up @@ -974,11 +942,6 @@ public void destroy()
}
m_storage = null;

if ((m_caching) && (m_cache != null))
{
m_cache.close();
}

M_log.info("destroy()");

}
Expand Down

0 comments on commit 9137112

Please sign in to comment.