My project is on Windows, and the relevant configuration in httpd.conf is as follows: LoadFile "C:\Program Files\myproject\Python\python37.dll" LoadModule wsgi_module "C:\Program Files\myproject\Python\lib\site-packages\mod_wsgi\server\mod_wsgi.cp37-win32.pyd" WSGIPythonHome "C:\Program Files\myproject\Python" WSGIScriptAlias / "C:/Program Files/myproject/myapp/wsgi.py" WSGIPythonPath "C:/Program Files/myproject/myapp"
<Directory "C:/Program Files/myproject/myapp"> <Files wsgi.py> Require all granted </Files> </Directory> Alias /static "C:/Program Files/myproject/myapp/staticfiles" <Directory "C:/Program Files/myproject/myapp/staticfiles"> AllowOverride None Options None Require all granted </Directory> <IfModule mod_headers.c> <Location "/"> Header unset ETag Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate" Header set Pragma "no-cache" Header set Expires "Wed, 11 Jan 1984 05:00:00 GMT" </Location> </IfModule> <IfModule mpm_winnt_module> ThreadsPerChild 25 MaxConnectionsPerChild 0 </IfModule> Graham Dumpleton 在 2023年12月5日 星期二下午1:39:18 [UTC+8] 的信中寫道: > There may not be only a single object because of how you have configured > Apache/mod_wsgi. > > Read: > > * > https://modwsgi.readthedocs.io/en/master/user-guides/processes-and-threading.html > > Then post your configuration so can see whether you are using embedded > mode or daemon mode of mod_wsgi, and if the latter how you have the daemon > process group configured, plus whether you are correctly delegating > requests to even be run in daemon node processes. > > Graham > > On 5 Dec 2023, at 4:33 pm, 王省三 <gust...@gmail.com> wrote: > > Dear mod_wsgi community, > > I hope this message finds you well. I am encountering an issue in my > project setup, which involves ApacheServer, mod_wsgi, and Django. > Specifically, when accessing the project from both the company's internal > network and external network, it appears that different global objects are > being obtained, seemingly from different memory locations. This discrepancy > in global objects results in an increasing time difference between internal > and external networks. > > In theory, there should only be one global object, and when using > runserver or employing Nginx or Waitress as reverse proxies, this issue > does not occur. Despite disabling cache-related settings in ApacheServer, > the problem persists. > > I would like to inquire whether mod_wsgi has any caching mechanisms or if > there might be an underlying issue causing this behavior. Your insights and > guidance on how to address or troubleshoot this matter would be greatly > appreciated. > > Thank you for your time and assistance. > > Best regards, Arthur > > -- > You received this message because you are subscribed to the Google Groups > "modwsgi" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to modwsgi+u...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/modwsgi/bc088c4d-9859-40aa-bd7a-41b1b95b445bn%40googlegroups.com > > <https://groups.google.com/d/msgid/modwsgi/bc088c4d-9859-40aa-bd7a-41b1b95b445bn%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > > -- You received this message because you are subscribed to the Google Groups "modwsgi" group. To unsubscribe from this group and stop receiving emails from it, send an email to modwsgi+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/modwsgi/49171a58-455d-4e76-81c1-7232ae82b8b3n%40googlegroups.com.