You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by sa...@apache.org on 2012/04/26 12:56:21 UTC
svn commit: r1330768 -
/ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/stats/ServerHitBin.java
Author: sascharodekamp
Date: Thu Apr 26 10:56:21 2012
New Revision: 1330768
URL: http://svn.apache.org/viewvc?rev=1330768&view=rev
Log:
Trying to cache Visit, but Visit has neverCache-option set (https://issues.apache.org/jira/browse/OFBIZ-4846) A patch from Sebastian Leitner: The Visit-entity has the neverCache-option set, but ServerHitBin is trying to cache it anyway. This should be avoided. I will attach a patch for this (rather trivial change).
Modified:
ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/stats/ServerHitBin.java
Modified: ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/stats/ServerHitBin.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/stats/ServerHitBin.java?rev=1330768&r1=1330767&r2=1330768&view=diff
==============================================================================
--- ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/stats/ServerHitBin.java (original)
+++ ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/stats/ServerHitBin.java Thu Apr 26 10:56:21 2012
@@ -623,7 +623,7 @@ public class ServerHitBin {
return;
}
String visitId = visit.getString("visitId");
- visit = delegator.findOne("Visit", UtilMisc.toMap("visitId", visitId), true);
+ visit = delegator.findOne("Visit", UtilMisc.toMap("visitId", visitId), false);
if (visit == null) {
// GenericValue stored in client session does not exist in database.
Debug.logInfo("The Visit GenericValue stored in the client session does not exist in the database, not storing server hit.", module);