Mil0R3
Mil0R3

Reputation: 3956

cache data in python and sqlite3

  1. Using python(fastcgi),lighttpd,sqlite3 for server
  2. Update data of sqlite3 every weekend.
  3. Thats means, every user get the same data from server before weekend,and server query database for every user's request. My question is: Is there any way to cache data for users,server using cache data to response all users before updating data,not query database every time. Like using a global variable for a week,until update it.

Upvotes: 0

Views: 215

Answers (1)

Ignacio Vazquez-Abrams
Ignacio Vazquez-Abrams

Reputation: 798556

You can use a cache such as memcached to store it once retrieved.

Upvotes: 1

Related Questions