From d97f70b22494899417cc5fc8744e1d4ea6d22f9e Mon Sep 17 00:00:00 2001 From: Dylan Date: Sat, 23 Jul 2022 16:29:39 +0100 Subject: [PATCH] Added option to disable cache --- cache.py | 4 +++- readme.md | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) 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** )