mirror of
https://github.com/redmine/redmine.git
synced 2026-05-06 20:36:53 +02:00
Change markdownized preview cache path from files/markdownized_previews to files/derived_cache/markdownized_previews (#8959).
git-svn-id: https://svn.redmine.org/redmine/trunk@24592 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user