Use requests_cache wrapper
The wrapper is pre-configured as intended
MODIFY
plex_trakt_sync/main.py
plex_trakt_sync/main.py
import plexapi.server
-import requests_cache
import trakt
from plex_trakt_sync.path import pytrakt_file, env_file, trakt_cache
from plex_trakt_sync.plex_api import PlexApi
from plex_trakt_sync.trakt_list_util import TraktListUtil
from plex_trakt_sync.config import CONFIG
from plex_trakt_sync.logging import logging
+from plex_trakt_sync.requests_cache import requests_cache
-requests_cache.install_cache(trakt_cache)
trakt_post_wait = 1.2 # delay in sec between trakt post requests to respect rate limit

Use requests_cache wrapper

The wrapper is pre-configured as intended