convertit icon indicating copy to clipboard operation
convertit copied to clipboard

Think about cache

Open leplatrem opened this issue 12 years ago • 2 comments

  • Last-modified header of source url ?

leplatrem avatar Nov 09 '12 14:11 leplatrem

using las-modified header will add some complexity.

  • does url has already been fetched ?
  • does the fetched version has last-modified ?
  • HEAD before GET to know last-modified
  • save file and save last-modified
  • find the corresponding converted file if exists

1srt method: use a database 2nd method: use url hashes + metadata file

AntoineCezar avatar Dec 28 '12 11:12 AntoineCezar

A simple key-value store seems fine ? Like a JSON or a pickledb, since pyramid has no file-based cache backend of its own.

leplatrem avatar Jan 07 '13 09:01 leplatrem