From 32037ffcf8822c750ba29171e30ef77b89e92a73 Mon Sep 17 00:00:00 2001 From: Stone_Red <56473591+Stone-Red-Code@users.noreply.github.com> Date: Tue, 4 Jun 2024 16:09:24 +0200 Subject: [PATCH] Add option to disable caching for a specific content type --- src/Markdowser/ViewModels/ContentViewModelBase.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Markdowser/ViewModels/ContentViewModelBase.cs b/src/Markdowser/ViewModels/ContentViewModelBase.cs index ae14546..f9ce93d 100644 --- a/src/Markdowser/ViewModels/ContentViewModelBase.cs +++ b/src/Markdowser/ViewModels/ContentViewModelBase.cs @@ -10,5 +10,7 @@ public abstract class ContentViewModelBase(string title) public string RawContent { get; init; } = string.Empty; + public bool Cacheable { get; init; } = true; + public Logger Logger => GlobalState.Logger; } \ No newline at end of file