Added option to disable cache

This commit is contained in:
Dylan 2022-07-23 16:29:39 +01:00
parent 2da2cd5200
commit d97f70b224
2 changed files with 4 additions and 1 deletions

View File

@ -71,4 +71,6 @@ def getVnfFromLinkCache(video_link):
return vnf
else:
print(" ➤ [ X ] Link not in json cache")
return None
return None
elif link_cache_system == "none":
return None

View File

@ -41,6 +41,7 @@ vxTwitter generates a config.json in its root directory the first time you run i
- **db**: Caches all links to a mongoDB database. This should be used it you are using uWSGI and are not just running the script on its own as one worker
- **json**: This saves cached links to a local **links.json** file
- **none**: Does not cache requests. Not reccomended as you can easily use up your Twitter API credits with this. Intended for use with another cache system (i.e NGINX uwsgi_cache)
**method** - ( Options: **youtube-dl**, **api**, **hybrid** )