Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/janlenoch/cloud-example-webhook-cache-invalidation
An example app that showcases how webhooks in Kentico Cloud can be used to invalidate content cached in web app's memory cache.
https://github.com/janlenoch/cloud-example-webhook-cache-invalidation
aspnet-core caching dotnet-core kentico-cloud mvc visual-studio webhook
Last synced: 8 days ago
JSON representation
An example app that showcases how webhooks in Kentico Cloud can be used to invalidate content cached in web app's memory cache.
- Host: GitHub
- URL: https://github.com/janlenoch/cloud-example-webhook-cache-invalidation
- Owner: JanLenoch
- License: mit
- Created: 2017-09-07T12:00:06.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-09-25T16:57:10.000Z (over 7 years ago)
- Last Synced: 2024-02-20T20:24:58.574Z (12 months ago)
- Topics: aspnet-core, caching, dotnet-core, kentico-cloud, mvc, visual-studio, webhook
- Language: C#
- Size: 543 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Webhook Cache Invalidation
The example code for the [Clearing Obsolete Cache Entries with Webhooks](https://kenticocloud.com/blog/clearing-obsolete-cache-entries-with-webhooks) article in the [Kentico Cloud blog](https://kenticocloud.com/blog).
The example ASP.NET MVC Core app showcases how webhooks in Kentico Cloud can be used to invalidate content cached in web app's memory cache.
## How To Run the Code
Clone the repo and edit the "KenticoCloudProjectId" and "KenticoCloudWebhookSecret" values in the [appsettings.json](https://github.com/Kentico/cloud-example-webhook-cache-invalidation/blob/master/WebhookCacheInvalidationMvc/appsettings.json) file. The latter one should be generated in Kentico Cloud > main menu > Webhooks > Create new Webhook. In that dialog, also insert the publicly routable URL address of your app with "/webhook" at its end (e.g. http://example.com/webhook).
You may also wish to deploy the example app to your Azure subscription via the "Deploy to Azure" button below.
[![Deploy to Azure](http://azuredeploy.net/deploybutton.png)](https://azuredeploy.net/)
Once deployed, you should add the above two settings into your App Service's [Application settings](https://docs.microsoft.com/en-us/azure/app-service-web/web-sites-configure).