Added option to disable cache
This commit is contained in:
parent
2da2cd5200
commit
d97f70b224
4
cache.py
4
cache.py
@ -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
|
@ -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** )
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user