[Fixed]-Django determine if client hasn't made a request in X seconds

1👍

You can try using Django’s cache mechanism (either memcached or redis) to store the timestamp of the last communication for a given Android App Client with its ID as cache key and an expiration time of whatever you want the timeout to be.

Setting it up like this you are able to simply check if the cache has a record of the current Android App’s ID to determine if it errored out.

Leave a comment