Project

General

Profile

Feature #8959 » 0001-Change-markdownized-preview-cache-path-from-files-ma.patch

Go MAEDA, 2026-04-17 08:07

View differences:

app/models/attachment.rb
87 87
  # stored under storage_path, which is expected to have appropriately
88 88
  # restrictive permissions.
89 89
  def self.markdownized_previews_storage_path
90
    File.join(storage_path, 'markdownized_previews')
90
    File.join(storage_path, 'derived_cache', 'markdownized_previews')
91 91
  end
92 92

  
93 93
  before_create :files_to_final_location
files/delete.me
1 1
default directory for uploaded files
2 2

  
3
## The `markdownized_previews` subdirectory
3
## The `derived_cache/markdownized_previews` subdirectory
4 4

  
5
Redmine may create a `markdownized_previews` subdirectory in this
6
directory to store cached Markdown previews generated from supported
7
Microsoft Office and LibreOffice attachments.
5
Redmine may create a `derived_cache/markdownized_previews`
6
subdirectory in this directory to store cached Markdown previews
7
generated from supported Microsoft Office and LibreOffice attachments.
8 8

  
9 9
You can safely delete these cached files. They will be automatically
10 10
regenerated when needed.
(10-10/10)