|
|
@ -1155,9 +1155,7 @@ defmodule Explorer.Chain do |
|
|
|
|
|
|
|
|
|
|
|
if block_type == "Block" && !paging_options.key do |
|
|
|
if block_type == "Block" && !paging_options.key do |
|
|
|
if BlocksCache.enough_elements?(paging_options.page_size) do |
|
|
|
if BlocksCache.enough_elements?(paging_options.page_size) do |
|
|
|
cached_blocks = BlocksCache.blocks() |
|
|
|
BlocksCache.blocks(paging_options.page_size) |
|
|
|
|
|
|
|
|
|
|
|
Enum.slice(cached_blocks, 0, paging_options.page_size) |
|
|
|
|
|
|
|
else |
|
|
|
else |
|
|
|
elements = fetch_blocks(block_type, paging_options, necessity_by_association) |
|
|
|
elements = fetch_blocks(block_type, paging_options, necessity_by_association) |
|
|
|
|
|
|
|
|
|
|
|