diff --git a/src/library/title.cr b/src/library/title.cr index 6a78ea5..54779c2 100644 --- a/src/library/title.cr +++ b/src/library/title.cr @@ -381,7 +381,9 @@ class Title ary.reverse! unless opt.not_nil!.ascend - SortedEntriesCache.set cache_key, ary + if Config.current.sorted_entries_cache_enable + SortedEntriesCache.set cache_key, ary + end ary end