first commit

This commit is contained in:
javad committed 2026-06-15 10:57:28 +03:30
commit 3e4574dcdd
163 files changed
+3559

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
from apps.appsetting.models import City
from django.core.cache import cache
def get_city_list():
city = cache.get('city')
if city is None:
city = City.objects.all()
# 75 hour cache
cache.set('city', city, 60 * 60 * 72)
return city