Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9129345
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T07:43:29+00:00 2026-06-17T07:43:29+00:00

I am using the following stack: nginx uwsgi Python (Flask) I’ve set up a

  • 0

I am using the following stack:

  • nginx
  • uwsgi
  • Python (Flask)

I’ve set up a little app that utilizes redis as its main database. I only use GET, SET, EXISTS and EXPIRE in my code.

When trying the app in the terminal everything works fine. On every request it checks if the content is available (EXISTS). If it’s not the content gets loaded and saved for a while (SET, EXPIRE). After that, the content gets presented to the user (GET).

The problem is that as soon as I run the app via nginx/uwsgi, after some time the EXPIRE seems to be ignored. Instead of deleting the value and loading it fresh, the new content gets appended to the old one – as it seems not only one time, but like dozens of times, resulting in extremely large values and sometimes timeouts.

Strangest thing for me: The whole issue disappears as soon as I restart uwsgi.
Any Idea?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T07:43:31+00:00Added an answer on June 17, 2026 at 7:43 am

    I’ve figured it out! The problem was that I “recycled” these two instances:

    md = markdown.Markdown(safe_mode="escape", output_format='html4')
    h2t = html2text.HTML2Text()
    

    http://github.com/saibotd/hackerhub/blob/master/app.py -> lines 22, 23

    I need to re-create these objects every request and it works as expected.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have recently started using Netbeans with following stack Liferay, icefaces with jBoss. Is
I push a fragment on the fragment stack using the following code: FragmentManager fragmentManager
I've been using the following web development stack for a few years: java/spring/hibernate/mysql/jetty/wicket/jquery For
I'm creating a compojure project using hiccup-1.0.0-beta1. I get the following stack trace when
I'm using WinDBG and have the following stack trace: ntdll!NtTerminateProcess+0xa KERNELBASE!TerminateProcess+0x2f MSVCR90!_invoke_watson+0x11c [f:\dd\vctools\crt_bld\self_64_amd64\crt\src\invarg.c @
My HTML5/CSS is being rendered as follows: https://i.stack.imgur.com/2KouR.jpg Using the following code: <li> <div
I am using Solaris x86 box . My application crashes with following stack trace.
I am using the following code below to group and sum stock for my
I'm using the following piece of code to pull a stock price from yahoo
I am following the following tutorial ( http://www.highoncoding.com/Articles/642_Creating_a_Stock_Widget_in_ASP_NET_MVC_Application.aspx ) on using ajax to render

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.