Ignore caches

This commit is contained in:
Leeingnyo 2021-09-10 20:24:54 +09:00
parent 4409ed8f45
commit 0a90e3b333
2 changed files with 6 additions and 2 deletions

View File

@ -18,7 +18,7 @@ class Library
def self.load_instance
dir = Config.current.library_path
return unless Dir.exists? dir
instance_file_path = File.join path, "library.yml.zip"
instance_file_path = File.join dir, "library.yml.zip"
return unless File.exists? instance_file_path
zip_file = Compress::Zip::File.new instance_file_path
@ -38,7 +38,7 @@ class Library
zip_file.close
scan
Library.default.scan
end
def initialize

View File

@ -10,9 +10,13 @@ class Title
entry_cover_url_cache : Hash(String, String)?
setter entry_cover_url_cache : Hash(String, String)?
@[YAML::Field(ignore: true)]
@entry_display_name_cache : Hash(String, String)?
@[YAML::Field(ignore: true)]
@entry_cover_url_cache : Hash(String, String)?
@[YAML::Field(ignore: true)]
@cached_display_name : String?
@[YAML::Field(ignore: true)]
@cached_cover_url : String?
def initialize(@dir : String, @parent_id)