You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<!--
Before opening a pull request, please read the [contributing
guidelines](https://github.com/pancakeswap/pancake-frontend/blob/develop/CONTRIBUTING.md)
first
-->
<!-- start pr-codex -->
---
## PR-Codex overview
This PR introduces caching for farm data fetching in the API handler,
improving performance by reducing repeated data fetching. It also
updates the method of retrieving farm configuration to utilize the
cache.
### Detailed summary
- Added import for `cacheByLRU` from `@pancakeswap/utils/cacheByLRU`.
- Created `_fetchFarmData` function to fetch and format farm data.
- Implemented `fetchFarmData` using `cacheByLRU` for caching.
- Replaced direct fetching of farm configuration with `fetchFarmData`.
- Fixed `lastUpdatedAt` to correctly call `toISOString()` method.
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your
question}`
<!-- end pr-codex -->
0 commit comments