Stephen_C Posted March 13 Share Posted March 13 I have a script filter with a tediously long list of items which displays in Alfred in a /bin/zsh --no-rcs window like this: cat <<EOF { "items": [ { blah blah blah }, …… { blah blah blah } ] } EOF I need to cache that list using the new Alfred 5.5 utility but much fruitless experimentation has yet to show me how and where to do it. In essence, where and how do you use that cache utility in this context? Stephen (yet again revealing ignorance of a language to which he is allergic) Link to comment
vitor Posted March 13 Share Posted March 13 I’ll look into improving the docs. Does this clarify? { "cache": { "seconds": 3600 }, "items": [ ... ] } Link to comment
Stephen_C Posted March 13 Author Share Posted March 13 Perfect: thanks Vitor. I tried just about every variation I could imagine but not, of course, that one. Stephen Link to comment
andy4222 Posted March 30 Share Posted March 30 Is there a programatic way to flush this cache? I have a script filter that reads a directory with 100s of files and builds the results for the script filter. these files don't change often and hence I was creating another file where I would cache these results. however, when sometimes this directory has addition/removal of files and I have to refresh the cache file as well. Right now, I'm doing this refresh with a script. Any way to use this cache feature and flush the cache when needed. Not sure if the options listed help without me open the workflow in alfred preferences. ``` Editing the Script Filter object. Clicking Flush in the debugger. Reloading the workflow. ``` Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now