Skip to content

Commit

Permalink
Temporarily disable the MongoDB cache (fossasia#438)
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss authored and vaibhavsingh97 committed Jan 12, 2018
1 parent 29660e6 commit 67c8cf4
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion app/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,18 @@
from flask import (Flask, Response, abort, jsonify, make_response,
render_template, request)

from query_cache import lookup, store
from scrapers import feed_gen, scrapers

DISABLE_CACHE = True # Temporarily disable the MongoDB cache
if DISABLE_CACHE:
def lookup(url):
return False

def store(url, links):
pass
else:
from query_cache import lookup, store

app = Flask(__name__)
err = ""

Expand Down

0 comments on commit 67c8cf4

Please sign in to comment.