This is a Tridion 2009-SP1 Java environment with an Oracle Broker. Both the deployer and the website are running on the same server. We have the CD_2009.1.71453 roll up hotfix installed as well
We use some Keywords with metadata to store and retrieve information dynamically.
When we turn the CacheChannelService on with all the proper cacheBindings for the different dynamic content types it works for all but the Taxonomies.
What we can see happening is that when the cache is empty (after a restart or manual clearing) that the keywords are properly added to the cache after a publish of the containing category. However, when we update a keyword or add a new one and republish the category this does not get picked up in the website. It even causes an error when it can't find the new keyword in the cache.
It seems that somehow the mechanism where;
- It checks the cache
- Not in the cache (or updated version)
- Retrieve item from the Broker
Does not work properly.
Either we are missing something really obvious or it is a bug. I have looked through all the other posts about caching, but haven't found the solution yet. Tridion support has been contacted, but so far they haven't given the golden tip either.
Simple version of Broker conf.
cd_broker_conf (same on uploader and website):
<Bindings>
<Binding Name="LinkInfo" Class="com.tridion.broker.linking.SQLLinkInfoHome" />
<Binding Name="ComponentMeta"
Class="com.tridion.broker.components.meta.OracleComponentMetaHome" />
<Binding Name="Taxonomy" Class="com.tridion.broker.taxonomies.SQLTaxonomyHome" />
</Bindings>
<ObjectCache Enabled="true">
<Policy Type="LRU" Class="com.tridion.cache.LRUPolicy">
<Param Name="MemSize" Value="128mb" />
</Policy>
<Features>
<Feature Type="DependencyTracker" Class="com.tridion.cache.DependencyTracker" />
</Features>
<CacheBindings>
<CacheBinding Name="LinkInfo" Class="com.tridion.broker.linking.CachedLinkInfoHome" />
<CacheBinding Name="ComponentMeta"
Class="com.tridion.broker.components.meta.CachedComponentMetaHome" />
<CacheBinding Name="Taxonomy" Class="com.tridion.broker.taxonomies.CachedTaxonomyHome" />
</CacheBindings>
<RemoteSynchronization Host="127.0.0.1" Port="1099" Queuesize="10000"
ServiceMonitorInterval="10000" />
</ObjectCache>
Added the part of the cd_broker.log where you can see it looking for a new keyword in the cache:
[Debug 27-03-2013 09:35:41] Retrieving Keyword with KeywordURI: tcm:11-12436-1024
[Debug 27-03-2013 09:35:41] Retrieving Keyword List from cache
[Debug 27-03-2013 09:35:41] Retrieving Keyword with KeywordURI: tcm:11-12436-1024
[Debug 27-03-2013 09:35:41] Retrieving Keyword List from cache
[Debug 27-03-2013 09:36:50] Retrieving Keyword with KeywordURI: tcm:11-12799-1024
[Debug 27-03-2013 09:36:50] Retrieving Keyword List from cache
[Debug 27-03-2013 09:36:50] Retrieving Keyword with KeywordURI: tcm:11-12801-1024
[Debug 27-03-2013 09:36:50] Retrieving Keyword List from cache
[Debug 27-03-2013 09:36:50] Retrieving Keyword with KeywordURI: tcm:11-12801-1024
[Debug 27-03-2013 09:36:50] Retrieving Keyword List from cache
[Debug 27-03-2013 09:36:50] Retrieving Keyword with KeywordURI: tcm:11-12800-1024
[Debug 27-03-2013 09:36:50] Retrieving Keyword List from cache
[Debug 27-03-2013 09:36:50] Retrieving Keyword with KeywordURI: tcm:11-12444-1024
[Debug 27-03-2013 09:36:50] Retrieving Keyword List from cache
[Debug 27-03-2013 09:36:50] Retrieving Keyword with KeywordURI: tcm:11-12451-1024
[Debug 27-03-2013 09:36:50] Retrieving Keyword List from cache
[Debug 27-03-2013 09:36:50] Cache miss, Keyword list not in cache, retrieving and storing in cache
[Debug 27-03-2013 09:36:50] Retrieving a keyword: SELECT TF.FACET_ID, TF.PUBLICATION_ID, TF.TAXONOMY_ID, TF.FACET_NAME, TF.FACET_PARENT, TF.FACET_ISABSTRACT, TF.FACET_ISNAVIGABLE, TF.FACET_HASCHILDREN, TF.FACET_KEY, TF.FACET_LEFT, TF.FACET_RIGHT, TF.FACET_DEPTH, TF.FACET_DESCRIPTION, TF.FACET_ITEMTYPE,( SELECT COUNT(DISTINCT ITC.ITEM_REFERENCE_ID) AS CNT FROM ITEM_CATEGORIES_AND_KEYWORDS ITC WHERE ITC.KEYWORD_ID=TF.FACET_ID ) AS RELATED_ITEMS FROM TAXFACETS TF LEFT JOIN ITEM_CATEGORIES_AND_KEYWORDS ITC ON ITC.KEYWORD_ID=TF.FACET_ID WHERE TF.PUBLICATION_ID = ? AND TF.FACET_ID = ? AND TF.FACET_ITEMTYPE = ? GROUP BY TF.FACET_ID, TF.PUBLICATION_ID, TF.TAXONOMY_ID, TF.FACET_NAME, TF.FACET_PARENT, TF.FACET_ISABSTRACT, TF.FACET_ISNAVIGABLE, TF.FACET_HASCHILDREN, TF.FACET_KEY, TF.FACET_LEFT, TF.FACET_RIGHT, TF.FACET_DEPTH, TF.FACET_DESCRIPTION, TF.FACET_ITEMTYPE
[Debug 27-03-2013 09:36:50] No keywords found for the given Keyword URI: tcm:11-12451-1024