mirror of
https://github.com/hkalexling/Mango.git
synced 2026-04-30 00:00:43 -04:00
Replace InfoCache to LRUCache
This commit is contained in:
@@ -106,8 +106,6 @@ class Library
|
||||
|
||||
storage = Storage.new auto_close: false
|
||||
|
||||
InfoCache.clear
|
||||
|
||||
(Dir.entries @dir)
|
||||
.select { |fn| !fn.starts_with? "." }
|
||||
.map { |fn| File.join @dir, fn }
|
||||
@@ -121,8 +119,6 @@ class Library
|
||||
@title_ids << title.id
|
||||
end
|
||||
|
||||
InfoCache.clean
|
||||
|
||||
storage.bulk_insert_ids
|
||||
storage.close
|
||||
|
||||
|
||||
Reference in New Issue
Block a user