r7271 - dumbhippo/trunk/server/src/com/dumbhippo/server/blocks



Author: otaylor
Date: 2008-01-28 10:19:00 -0600 (Mon, 28 Jan 2008)
New Revision: 7271

Modified:
   dumbhippo/trunk/server/src/com/dumbhippo/server/blocks/AbstractSingleBlockForFeedBlockHandlerBean.java
Log:
optimize last commit to invalidate multiple properties a bit

Modified: dumbhippo/trunk/server/src/com/dumbhippo/server/blocks/AbstractSingleBlockForFeedBlockHandlerBean.java
===================================================================
--- dumbhippo/trunk/server/src/com/dumbhippo/server/blocks/AbstractSingleBlockForFeedBlockHandlerBean.java	2008-01-28 16:06:17 UTC (rev 7270)
+++ dumbhippo/trunk/server/src/com/dumbhippo/server/blocks/AbstractSingleBlockForFeedBlockHandlerBean.java	2008-01-28 16:19:00 UTC (rev 7271)
@@ -104,9 +104,10 @@
 		// so it is unreliable, because we update blocks based on timestamps
 		long now = System.currentTimeMillis();
 		Block block = stacker.stack(getKey(user), now, user, false, StackReason.BLOCK_UPDATE);
-		DataService.currentSessionRW().changed(BlockDMO.class, new BlockDMOKey(block), "title");
-		DataService.currentSessionRW().changed(BlockDMO.class, new BlockDMOKey(block), "description");
-		DataService.currentSessionRW().changed(BlockDMO.class, new BlockDMOKey(block), "link");
+		BlockDMOKey key = new BlockDMOKey(block);
+		DataService.currentSessionRW().changed(BlockDMO.class, key, "title");
+		DataService.currentSessionRW().changed(BlockDMO.class, key, "description");
+		DataService.currentSessionRW().changed(BlockDMO.class, key, "link");
 	}
 
 	public void onExternalAccountLovedAndEnabledMaybeChanged(User user, ExternalAccount external) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]