Skip to content

Commit

Permalink
Initialize CachedData cache for distributor customlist searches. (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
tdilauro authored Mar 8, 2024
1 parent 30b5341 commit 582b3b3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bin/custom_list_update_new_entries
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ import sys
bin_dir = os.path.split(__file__)[0]
package_dir = os.path.join(bin_dir, "..")
sys.path.append(os.path.abspath(package_dir))

from core.model import production_session
from core.scripts import CustomListUpdateEntriesScript
from core.util.cache import CachedData

# The cache needs to be initialized for this script to work properly.
CachedData.initialize(production_session(initialize_data=False))
CustomListUpdateEntriesScript().run()

0 comments on commit 582b3b3

Please sign in to comment.