Skip to content Skip to sidebar Skip to footer
Showing posts with the label Caching

Removing Header From Cached Response With Nginx

I have NGINX running as a reverse proxy in front of a few Flask apps. I want to implement caching f… Read more Removing Header From Cached Response With Nginx

Is There A Way To Cache Python 3.5 Definitions Using A Time-to-live Decorator?

Currently, I use functools' lru_cache to handle my caching for the function. The problem is tha… Read more Is There A Way To Cache Python 3.5 Definitions Using A Time-to-live Decorator?

Followup: Attribute Caching In Superclasses

This is a followup to this question. I have a class which caches an attribute for its subclasses: c… Read more Followup: Attribute Caching In Superclasses

How To Name/arrange My Memcached Keys When I Have Django Objects With Multiple Foreign Keys?

I have an existing Django app that doesn't do any Database caching. I am working to implement m… Read more How To Name/arrange My Memcached Keys When I Have Django Objects With Multiple Foreign Keys?

How To Cache A Large Machine Learning Model In Flask?

Here is the situation I am facing with: I just wrote a Flask app that people can input the text rev… Read more How To Cache A Large Machine Learning Model In Flask?

Clear Python Cachetools Manually

In this class I have a method which I cache its result using cachetools: from cachetools import cac… Read more Clear Python Cachetools Manually