Commit Graph

6 Commits (194556f7388ca778528cde59aa8d4989e33e893f)

Author SHA1 Message Date
Matt Miller 68fc7c8dec Set explicit caching everywhere.
This explicity sets the caching behavior for all goodies. Goodies which
did not have caching behavior set in their package have had it added.
Similarly for the tests.

This resulted in a number of changes for caching behavior, mostly
moving towards more frequent caching.

I identified three cases where goodies should not be cached. They are when
the result depends upon:

- some random element,
- the time of day or year (as with relative dates), or
- the location of the requesting user

In all other cases, I presumed that the goodies were sufficiently
deterministic in their output to warrant caching.
2014-09-27 10:35:17 -04:00
dariog88a 802a95e505 Removed zci is_cached => 1. Regex to keep only letters and spaces (remove versioning). Added optional space to match 'os x'. Cleaner return. Replaced \n with <br>. 2013-10-25 17:06:10 -03:00
dariog88a a1c8d901df Replaced trim function with inline regex. Added encoding to slurp. Using utf8 in test file to fix tests. 2013-10-07 19:32:53 -03:00
dariog88a 8f93ab53ff Added resource with shortcuts in CSV format (with pipe as separator). Replaced the HTTP request with file parsing. Adapted tests to the change. 2013-08-13 22:34:47 -03:00
dariog88a 5b02bd5748 Complete rewrite of Shorcut plugin: added context and used Wikipedia as resource. 2013-07-30 00:20:18 -03:00
dariog88a acc573eb26 Initial commit of Shorcut plugin. 2013-07-23 21:17:40 -03:00