From 7d13eea79c7eb16d6be0dece0ec0f8c9e3b7a27c Mon Sep 17 00:00:00 2001 From: MAEDA Go Date: Fri, 17 Apr 2026 15:07:09 +0900 Subject: [PATCH] Change markdownized preview cache path from `files/markdownized_previews` to `files/derived_cache/markdownized_previews` --- app/models/attachment.rb | 2 +- files/delete.me | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/models/attachment.rb b/app/models/attachment.rb index eed654f14..6932d79a2 100644 --- a/app/models/attachment.rb +++ b/app/models/attachment.rb @@ -87,7 +87,7 @@ class Attachment < ApplicationRecord # stored under storage_path, which is expected to have appropriately # restrictive permissions. def self.markdownized_previews_storage_path - File.join(storage_path, 'markdownized_previews') + File.join(storage_path, 'derived_cache', 'markdownized_previews') end before_create :files_to_final_location diff --git a/files/delete.me b/files/delete.me index 69e3582f0..f998fcfbd 100644 --- a/files/delete.me +++ b/files/delete.me @@ -1,10 +1,10 @@ default directory for uploaded files -## The `markdownized_previews` subdirectory +## The `derived_cache/markdownized_previews` subdirectory -Redmine may create a `markdownized_previews` subdirectory in this -directory to store cached Markdown previews generated from supported -Microsoft Office and LibreOffice attachments. +Redmine may create a `derived_cache/markdownized_previews` +subdirectory in this directory to store cached Markdown previews +generated from supported Microsoft Office and LibreOffice attachments. You can safely delete these cached files. They will be automatically regenerated when needed. -- 2.50.1