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

  • Home
  • SEARCH
  • 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 710463
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T04:37:23+00:00 2026-05-14T04:37:23+00:00

I have a simple django page that has a counter on it. I use

  • 0

I have a simple django page that has a counter on it.
I use Apache2 with mod_wsgi to serve it.

First, when I enter this page, the counter shows 0, as it should.
The second time when I enter the page the counter shows 1 – again, it is the right behavior.
The problem begins now, cause when I enter this page the third time, I get 0 again.

When I refresh it goes between 0, and 1, clearly using some cache or so.
If I wait for some time and then try again, it will show 2, and 3, but will be stuck with those values, till this cache or whatever it is will be flushed, and then the counter continues.

Does somebody knows how I can get it work right (the real scenario deals with getting data from the DB, but the problems with this strange cache are the same).

BTW, I don’t have any caching engine set in my django settings.

  • 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-05-14T04:37:24+00:00Added an answer on May 14, 2026 at 4:37 am

    You are running multiple instances of your Django. Apache connects randomly to one of them.

    For testing purposes, try this in your apache.conf:

    WSGIDaemonProcess mysite processes=1 maximum-requests=500 threads=1
    

    (You may want more processes in production use.)

    See full documentation of options.

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

Sidebar

Related Questions

I have a page that has a simple form. When I submit this form
I have a simple django app that is using only the admin. This is
I have a web application written in Django that has one specific page I'd
I have a simple form in Django that looks like this: class SettingForm(forms.Form): theme
I have a simple Django view that just returns URL parameters, but if I
I am building a simple Django app that will use scribd to display documents.
I have a simple form. It has a field that accepts a hostname and
I have a rather simple informational website that's being run by Django. Its' pages(views)
I'm writing a simple real-estate listing app in Django. Each property needs to have
I have simple win service, that executes few tasks periodically. How should I pass

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.