Class CacheContext
java.lang.Object
com.broadleafcommerce.common.extension.cache.condition.CacheContext
Several caches (most notably caches related to entity retrieval) are sensitive to the value of
this thread local. If not enabled, the cache is deactivated for the request. This is important
because enablement of these caches for a request is generally conditional - most commonly enabled
on requests that are not admin requests or sandbox preview requests.
- Author:
- Jeff Fischer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
static void
clear()
boolean
static CacheContext
int
hashCode()
boolean
static boolean
static boolean
boolean
void
setCacheEnabled
(boolean cacheEnabled) void
setForceCompileCache
(boolean forceCompileCache) toString()
-
Constructor Details
-
CacheContext
public CacheContext()
-
-
Method Details
-
getContext
-
clear
public static void clear() -
isEnabled
public static boolean isEnabled() -
isForceCompile
public static boolean isForceCompile() -
isCacheEnabled
public boolean isCacheEnabled() -
isForceCompileCache
public boolean isForceCompileCache() -
setCacheEnabled
public void setCacheEnabled(boolean cacheEnabled) -
setForceCompileCache
public void setForceCompileCache(boolean forceCompileCache) -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-