title: Changes in Instances in 'view.py' won't reflect in pages in Flask
body: <p>I've created in my 'view.py' program (HTML redirector) a thread responsible to update my instances that contains data from DB. The idea is that every 15 seconds the data from DB is refreshed in these instances so when the user refreshes the HTML page, the data is available.</p>
  
  <p>Code:</p>
  
  <pre><code>#defining the Thread Function
  def set_global_vars():
  while True:
      global  ALL_SERVERS_FROM_DB
      time.sleep(15)
      ALL_SERVERS_FROM_DB = ServersManipulator(Server().query_all())       
  
  set_vars_thread = threading.Thread(target=set_global_vars)
  set_vars_thread .start()   
  
  # Redirecting to servers page uging ALL_SERVERS_FROM_DB
  @page.route('/servers', methods=['GET', 'POST'])
  def servers(server='ALL'):
      return render_template('servers.html', server_man=ALL_SERVERS_FROM_DB, server=server)
  </code></pre>
  
  <p>Problem is if I add a new entry that should affect 'ALL_SERVERS_FROM_DB', it doesn't reflect on the HTML page, that uses this instance to populate a table.</p>
  
  <p>Hope I was clear and that someone can help me.</p>
  
  <p>Kind Regards</p>