Fix title sort bug, invalidate titles of the Library

Refactor remove cache
This commit is contained in:
Leeingnyo
2021-12-26 04:27:27 +09:00
parent b711072492
commit ecaec307d6
3 changed files with 35 additions and 16 deletions
+2 -1
View File
@@ -90,7 +90,8 @@ class Entry
end
@book.entry_sort_title_cache = nil
@book.remove_sorted_caches [SortMethod::Auto, SortMethod::Title], username
@book.remove_sorted_entries_cache [SortMethod::Auto, SortMethod::Title],
username
end
def sort_title_db