Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi All,
Was wondering how do you do the PageCacheRefresher on the new V8 codes now.
Back in V7, we used to have something in the ApplicationStartedEvents that calls the below
CacheRefresherBase<PageCacheRefresher>.CacheUpdated += this.PageCacheRefresherCacheUpdated; CacheRefresherBase<MediaCacheRefresher>.CacheUpdated += this.MediaCacheRefresherCacheUpdated;
Thanks
Hi JLon,
I think what you are looking for are Composer/Components, you can register the same event using a Component: https://our.umbraco.com/documentation/implementation/composing/#example---creating-a-component-to-listen-for-contentservicesaving-events
If you have any questions about the implementation, let me know and I will try to help :)
Thanks Jeffrey, been trying out the components now.
What I wasn't too sure is the PageCacheRefresher no longer exist on V8, which are used as the events handlers for distributed servers.
Any idea?
I'm not sure with what the PageCacheRefresher is replaced, but it seems to not be existing on the V8 repository anymore. Maybe you can have a look at the repository yourself to see which may be applying: https://github.com/umbraco/Umbraco-CMS/tree/v8/dev/src/Umbraco.Web/Cache
PageCacheRefresher
For the MediaCacheRefresher the function is still available:
MediaCacheRefresher
CacheRefresherBase<MediaCacheRefresher>.CacheUpdated += this.MediaCacheRefresherCacheUpdated;
Maybe someone else has a bit more experience on this part as well and can guide you in the right directory for the refresher.
Thanks I'll take a look
Im not 100% on this but i think its replaced with CacheRefresherBase<ContentCacheRefresher>.CacheUpdated
CacheRefresherBase<ContentCacheRefresher>.CacheUpdated
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
V7 CacheRefresherBase to V8 codes
Hi All,
Was wondering how do you do the PageCacheRefresher on the new V8 codes now.
Back in V7, we used to have something in the ApplicationStartedEvents that calls the below
Thanks
Hi JLon,
I think what you are looking for are Composer/Components, you can register the same event using a Component: https://our.umbraco.com/documentation/implementation/composing/#example---creating-a-component-to-listen-for-contentservicesaving-events
If you have any questions about the implementation, let me know and I will try to help :)
Thanks Jeffrey, been trying out the components now.
What I wasn't too sure is the PageCacheRefresher no longer exist on V8, which are used as the events handlers for distributed servers.
Any idea?
Hi JLon,
I'm not sure with what the
PageCacheRefresher
is replaced, but it seems to not be existing on the V8 repository anymore. Maybe you can have a look at the repository yourself to see which may be applying: https://github.com/umbraco/Umbraco-CMS/tree/v8/dev/src/Umbraco.Web/CacheFor the
MediaCacheRefresher
the function is still available:Maybe someone else has a bit more experience on this part as well and can guide you in the right directory for the refresher.
Thanks I'll take a look
Im not 100% on this but i think its replaced with
CacheRefresherBase<ContentCacheRefresher>.CacheUpdated
is working on a reply...