diff --git a/cache.py b/cache.py index c40195a..240aaef 100644 --- a/cache.py +++ b/cache.py @@ -71,4 +71,6 @@ def getVnfFromLinkCache(video_link): return vnf else: print(" ➤ [ X ] Link not in json cache") - return None \ No newline at end of file + return None + elif link_cache_system == "none": + return None \ No newline at end of file diff --git a/readme.md b/readme.md index 8752b9a..f2ee2c5 100644 --- a/readme.md +++ b/readme.md @@ -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** )