From 0b52901ba3814e5496662623347b59b77f2f20f3 Mon Sep 17 00:00:00 2001 From: austnv Date: Mon, 15 Jun 2026 22:39:45 +0300 Subject: [PATCH] remove alru_cache --- routers/tariffs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routers/tariffs.py b/routers/tariffs.py index d051cc0..ed22bc9 100644 --- a/routers/tariffs.py +++ b/routers/tariffs.py @@ -1,11 +1,11 @@ from fastapi import APIRouter import aiofiles import json -from async_lru import alru_cache +# from async_lru import alru_cache router = APIRouter(prefix='/api/v1', tags=['tariffs']) -@alru_cache(maxsize=1, ttl=86400) +# @alru_cache(maxsize=1, ttl=86400) async def get_tariffs_from_file(): async with aiofiles.open('data/tariffs.json', 'r', encoding='utf-8') as f: content = await f.read()