I have a component that is cacheable within a placeholder where another component is placed, which is an SXA component. When I try to remove the SXA component inside the placeholder, the cache doesn't seem to clear.
For clarity:
I have a Menu component with a placeholder where i can place an Sxa Language Selector
The Menu component has cache and the cache clears when I publish some change to the menu, but when I remove the language selector from Menu the same doesn't happen, the language selector is still there on the CD server.
These components are inserted in the page through a page design.
But when I insert these components in the presentation details of the page, everything works as expected.
My instance is 9.0 update 1 with SXA 1.6 with CM and CD server and its multi-site
And I added this patch
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/">
<sitecore>
<events>
<event name="indexing:end">
<handler type="Sitecore.Publishing.HtmlCacheClearer, Sitecore.Kernel" method="ClearCache">
<sites hint="list">
<site>website</site>
<site>Site</site>
</sites>
</handler>
</event>
<event name="indexing:end:remote">
<handler type="Sitecore.Publishing.HtmlCacheClearer, Sitecore.Kernel" method="ClearCache">
<sites hint="list">
<site>website</site>
<site>Site</site>
</sites>
</handler>
</event>
</events>
</sitecore>
One more thing my cache setting include the menu rendering and the SXA language selector.