Comments (5)
Wouldn't just filemon signals + cache_clear() do?
EDIT: So as to keep the core a little bit leaner, or to have a more "hackable" solution.
from uwsgi.
i think the way of "touch" files has been abused (see logrotate and logreopen). The master fifo way is a lot better for sure. We can eventually add a command to clear the cache.
from uwsgi.
I'm looking for a command to clear the cache on certain URI for instance.
Is touch-reload = .git/index
the only solution ?
from uwsgi.
you could map a file monitor to a uwsgi.cache_clear() api command:
uwsgi.register_file_monitor(0, "/tmp", "worker", do_clear_cache)
def do_clear_cache(signal_number, filename):
uwsgi.cache_clear()
from uwsgi.
Thanks @unbit, is there anything that could be used with the internal routing such as http://uwsgi-docs.readthedocs.io/en/latest/InternalRouting.html#the-first-example
from uwsgi.
Related Issues (20)
- Compilation failure due to unused variables HOT 4
- Mechanism to insert a hook pre forking or before a worker process is spawned
- uwsgi_corerouter_loop malloc more than 8G memory HOT 1
- queue / max_queue metrics returns invalid values for UNIX domain sockets HOT 1
- New releases don't include commits from years ago
- How do I silence the startup messages outputed by UWSGI? HOT 1
- Troubleshooting uWSGI Log Rotation Configuration in a Django Container Environment
- Attaching debugger to process
- Undefined Behavior: `strncpy` from `NULL` HOT 3
- uwsgi compilation failed with openssl-1.1 python3.10 HOT 3
- Sigmask cause some commands segmentfault
- -Wformat-signedness causes compilation error with CLANG 16.0.6 HOT 2
- Workers segfaulting (threading related?) HOT 3
- Harakiri process is starting earlier than expected HOT 7
- Workers terminated by SigKill 9
- flag -Wformat-signedness HOT 4
- Getting 404 while using uwsgi with NginX in Django deployment HOT 1
- uwsgi worker dying at high request load with error "taking too much time to die...NO MERCY !!!" HOT 3
- Does uwsgi want to support WSGI+ ?
- Is the graceful harakiri signal sent to the process or thread? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from uwsgi.