Tag: eMarketingSpotCache
You can include the
wcf:eMarketingSpotCache tag within an
e-Marketing Spot JSP fragment to indicate that the JSP fragment is to be dynamically cached.
This tag dynamically sets dependency IDs for e-Marketing Spot cache entries.
When the
wcf:eMarketingSpotCache tag is used, the class for this tag
dynamically sets the dependency IDs to invalidate the cached e-Marketing Spot JSP fragment
when the e-Marketing Spot definition changes. The e-Marketing Spot definition changes
whenever the content (marketing content, products, categories) or web activities that are
associated with the e-Marketing Spot changes. The dependency IDs are set for the e-Marketing
Spot (ID or name). Dependency IDs can also be set for the data (catalog entry, category,
content) that is being displayed within an e-Marketing Spot.- If the parent page is being cached, the dependency IDs are set on the parent page cache entry
- If the parent page is not being cached, the dependency IDs are set on e-Marketing Spot JSP cache entry
| Tag information | |
|---|---|
| Body Content | empty |
Attributes
| Name | Required | Request-time | Type | Description |
|---|---|---|---|---|
marketingSpotData |
true |
true |
java.lang.String |
The MarketingSpotData SDO that returns from a service call to Get MarketingSpotData. |
categoryDependencyName |
false |
true |
java.lang.String |
If this value is set, the value for this attribute is used as the dependency name. This name is used to create a dependency rule for the categories that displays within the e-Marketing Spot. If this attribute is not set, then no dependency rules are set for categories that displays in the e-Marketing Spot. |
catalogEntryDependencyName |
false |
true |
java.lang.String |
If this value is set, the value for this attribute is used as the dependency name. This name is used to create a dependency rule for the catalog entries that displays within the e-Marketing Spot. If this attribute is not set, then no dependency rules are set for catalog entries that displays in the e-Marketing Spot. |
contentDependencyName |
false |
true |
java.lang.String |
If this value is set, the value for this attribute is used as the dependency name. This name is used to create a dependency rule for the marketing content that displays within the e-Marketing Spot. If this attribute is not set, then no dependency rules are set for the marketing content that displays in the e-Marketing Spot. |
Variables
No variables are defined for the wcf:eMarketingSpotCache tag.
EXAMPLE
The following example uses the
wcf:eMarketingSpotCache tag within an
e-Marketing Spot JSP fragment with the following format:
<wcf:eMarketingSpotCache marketingSpotData="${marketingSpotDatas}" />The
following example specifies dependencies IDs for the content, catalog entries, and
categories that display within an e-Marketing Spot:
<wcf:eMarketingSpotCache marketingSpotData="${marketingSpotDatas}"
contentDependencyName="contentId"
catalogEntryDependencyName="productId"
categoryDependencyName="categoryId"
/>
For more information about this tag, see the com.ibm.commerce.marketing.cache.TagEMarketingSpotCache.java class.