Skip to content

Commit

Permalink
rename:rebuild_cache function to cache
Browse files Browse the repository at this point in the history
This change updates the function name for clarity and brevity. The corresponding import statement and function call in `tasks.py` were also updated to reflect this new name.
  • Loading branch information
hareshkainthdbt committed Nov 26, 2024
1 parent de514b9 commit 732e150
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion orp/orp_search/cache/rebuild.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
logger = logging.getLogger(__name__)


def rebuild_cache():
def cache():
"""
Rebuilds cache for Legislation and PublicGateway.
Expand Down
4 changes: 2 additions & 2 deletions orp/orp_search/cache/tasks.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from celery import shared_task
from orp_search.cache.rebuild import rebuild_cache
from orp_search.cache.rebuild import cache


@shared_task
def rebuild_cache_task():
return rebuild_cache()
return cache()

0 comments on commit 732e150

Please sign in to comment.