You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@roller.apache.org by ag...@apache.org on 2006/07/15 01:31:45 UTC
svn commit: r422096 -
/incubator/roller/branches/roller_3.0/src/org/apache/roller/util/cache/CacheManager.java
Author: agilliland
Date: Fri Jul 14 16:31:44 2006
New Revision: 422096
URL: http://svn.apache.org/viewvc?rev=422096&view=rev
Log:
removing old hacked getLastExpiredDate() method from cache manager. this functionality has been replaced by weblog.getLastModified().
Modified:
incubator/roller/branches/roller_3.0/src/org/apache/roller/util/cache/CacheManager.java
Modified: incubator/roller/branches/roller_3.0/src/org/apache/roller/util/cache/CacheManager.java
URL: http://svn.apache.org/viewvc/incubator/roller/branches/roller_3.0/src/org/apache/roller/util/cache/CacheManager.java?rev=422096&r1=422095&r2=422096&view=diff
==============================================================================
--- incubator/roller/branches/roller_3.0/src/org/apache/roller/util/cache/CacheManager.java (original)
+++ incubator/roller/branches/roller_3.0/src/org/apache/roller/util/cache/CacheManager.java Fri Jul 14 16:31:44 2006
@@ -375,26 +375,6 @@
/**
- * Get the date of the last time the specified weblog was invalidated.
- *
- * There is some potential for a performance hit to do this lookup, but
- * we assume that our WebsiteData objects are cached up the @$$ ;)
- */
- public static Date getLastExpiredDate(String weblogHandle) {
-
- try {
- UserManager userMgr = RollerFactory.getRoller().getUserManager();
- WebsiteData weblog = userMgr.getWebsiteByHandle(weblogHandle);
- return weblog.getLastModified();
- } catch (RollerException ex) {
- log.error("Error setting last modified date", ex);
- }
-
- return null;
- }
-
-
- /**
* Compile stats from all registered handlers.
*
* This is basically a hacky version of instrumentation which is being