Cogworks.CogFlare.Core 1.2.1

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Cogworks.CogFlare.Core --version 1.2.1                
NuGet\Install-Package Cogworks.CogFlare.Core -Version 1.2.1                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Cogworks.CogFlare.Core" Version="1.2.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Cogworks.CogFlare.Core --version 1.2.1                
#r "nuget: Cogworks.CogFlare.Core, 1.2.1"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Cogworks.CogFlare.Core as a Cake Addin
#addin nuget:?package=Cogworks.CogFlare.Core&version=1.2.1

// Install Cogworks.CogFlare.Core as a Cake Tool
#tool nuget:?package=Cogworks.CogFlare.Core&version=1.2.1                

CogFlare

NuGet release

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": "xxx@xxx.com",
    "Endpoint": "https://api.cloudflare.com/client/v4/zones/[zoneId]/purge_cache",
    "KeyNodes": "1234, 031089",
    "IsEnabled": true
  }

<h2 style="color:plum">License</h2>

Licensed under the MIT License

© 2024 Cogworks

Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Cogworks.CogFlare.Core:

Package Downloads
Cogworks.CogFlare

A package that helps automatically purge CloudFlare cache

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.3.0 138 10/23/2024
1.2.5 448 6/13/2024
1.2.4 665 1/24/2024
1.2.3 129 1/23/2024
1.2.2 174 1/19/2024
1.2.1 105 1/19/2024
1.2.0 107 1/19/2024
1.1.0 141 1/16/2024
1.0.0 129 1/16/2024