Umbraco 7 - Clearing Outputcache when content node is published/deleted
Hi,
I am using Umbraco 7.1.9 and have outputcahce enabled on some controllers. I want to know what is the best way to clear cache when a content item is published/deleted.
I did implement this in ApplicationStarting by extending ContentService.Published but when I do that, a custom backend section that I wrote does not show up on dashboard.
Thanks Dave. This does not clear cache for me and my custom section still does not show still in backend. I followed this example to create custom section.
Turns out that tree.config was not being generated properly and that is why custom tree was not showing up. Is this supposed to be auto-generated by Umbraco or explicitly defined by user?
Umbraco 7 - Clearing Outputcache when content node is published/deleted
Hi,
I am using Umbraco 7.1.9 and have outputcahce enabled on some controllers. I want to know what is the best way to clear cache when a content item is published/deleted.
I did implement this in ApplicationStarting by extending ContentService.Published but when I do that, a custom backend section that I wrote does not show up on dashboard.
Thanks,
Shivani
Hi,
It's better to hook in to the cache refresher events. This is also the only way it will ever work on a load balancend environment.
Dave
Thanks Dave. This does not clear cache for me and my custom section still does not show still in backend. I followed this example to create custom section.
Turns out that tree.config was not being generated properly and that is why custom tree was not showing up. Is this supposed to be auto-generated by Umbraco or explicitly defined by user?
is working on a reply...