diff --git a/docs/public-networks/reference/cli/options.md b/docs/public-networks/reference/cli/options.md index 0b37c515cef..de8e1e7a75c 100644 --- a/docs/public-networks/reference/cli/options.md +++ b/docs/public-networks/reference/cli/options.md @@ -408,6 +408,48 @@ When connecting to Mainnet or public testnets, the default is a predefined list In private networks defined using [`--genesis-file`](#genesis-file) or when using [`--network=dev`](#network), the default is an empty list of bootnodes. +### `cache-last-blocks` + + + + + +```bash +--cache-last-blocks= +``` + + + + + +```bash +--cache-last-blocks=2048 +``` + + + + + +```bash +CACHE_LAST_BLOCKS=2048 +``` + + + + + +```bash +cache-last-blocks=2048 +``` + + + + + +The number of recent blocks to cache. +Using this option can improve the performance of several RPC calls including: [`eth_getBlockByNumber`](../api/index.md#eth_getBlockByNumber), [`eth_getBlockByHash`](../api/index.md#eth_getBlockByHash), [`eth_getTransactionReceipt`](../api/index.md#getTransactionReceipt), and especially [`eth_feeHistory`](../api/index.md#eth_feeHistory). +The default is `0`. + ### `color-enabled`