Install
dotnet add package Cogworks.CogFlare --version 1.2.10
| Product | Versions |
|---|---|
| .NET |
README
CogFlare
A package that helps automatically purge CloudFlare cache
Usage
Basic Functionality
- When any content node is changed(Published/Unpublished/Deleted), that node and any nodes referencing it will be purged from CloudFlare's cache
- When any media item is changed(Saved), it will be purged from CloudFlare's cache
- The ability to toggle the package functionality on/off in the settings
Advanced Functionality
- A list of Ids for Key Nodes on the site can be configured in the Settings
- A Key Node is any content node that will require a FULL site cache purge to be trigger if that node or any content nodes referenced by it is change (Site Settings, Navigation, Footers...)
Backoffice Dashboard
- A dashboard has been added to the Settings section of the backoffice
- Currenlty only Admins can access it
- This dashboard contains a button to manually trigger a FULL site cache purge
- There is also an option to view the current configuration for the package
Logs
There is logged message every time a node eligible for caching is changed and also to show the result of the purge request to CloudFlare
There's also a logged message to show the result of the purge request to CloudFlare
Installation
Install through dotnet CLI:
dotnet add package Cogworks.CogFlare
Or the NuGet Package Manager:
Install-Package Cogworks.CogFlare
Add these settings to the appsettings.json
"CogFlareSettings": {
"ApiKey": "xxx",
"Email": "[email protected]",
"Endpoint": "https://api.cloudflare.com/client/v4/zones/[zoneId]/purge_cache",
"KeyNodes": "1234, 031089",
"IsEnabled": true
}
License
Licensed under the MIT License
© 2024 Cogworks
Changes from Previous Version
No structural changes between v1.2.9 and v1.2.10.
Adoption Assessment
A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.
No SPDX license expression is published. Review the license text and your organisation's policy before redistribution.Compatibility metadata lists 1 target framework; confirm the exact target used by your application.
Related Guides & Workflows
Learn how to evaluate, integrate, or audit this package in your .NET project.