I'm not entirely sure if I get you. Are you saying I should fetch the XP and check if it has changed? It would defeat the purpose of caching a bit. I have an extremely light server running this app and wanted to avoid the call to the site itself. Perlmonks.org is very slow, and making calls to check it everytime would be expensive.
As alternatives I was thinking of (1) A sliding cache window, if your XP updates frequently then I will cache less frequently. But this is hard because it means I have to write a varnish plugin. (2) A feature to allow users to refresh the cache for just their flair. This is slightly more do-ableIf you submit it as an issue I will take this up when I can: https://github.com/gideondsouza/perlmonksflair/issues/new
Re^2: perlmonksflair.com : get your perlmonks flair!
Replies are listed 'Best First'.
|Re^3: perlmonksflair.com : get your perlmonks flair!|
by AppleFritter (Priest) on Apr 29, 2014 at 09:26 UTC
by gideondsouza (Pilgrim) on May 10, 2014 at 10:23 UTC