Skip to content

persistent caching #4

@lordmundi

Description

@lordmundi

While looking at the code on github, I noticed there is automatic caching of results, with a default expiration of 5 seconds.

However, since if a web server is calling your code to populate values on a page view, won't this reload your python code on every page view? If so, I'm guessing none of the caching will stick around since I don't think you are writing it to a file or anything.

This is a request for a way to somehow have the cache persist across multiple page views on the web server. If it is possible to do this with a certain webserver config rather than modifying the code, please let me know.

I'd just like to say thanks so much for your contribution of the python-tstat code. My son and I are thinking about taking on a web controlled thermostat, and since he is learning python, we think your library might be perfect for us.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions