Artifact 8c722302168b99c2c1e9d1d07d4007d726309731:
- Executable file appfs-cache — part of check-in [c374111c37] at 2014-11-07 04:52:29 on branch tcl-ops — Added support for an "appfs-cache" script calling sqlite3 directly in appfsd (user: rkeene, size: 304) [annotate] [blame] [check-ins using]
#! /usr/bin/env bash
case "$1" in
invalidate)
statement='UPDATE sites SET ttl = "0";'
;;
clear)
rm -rf
statement='DELETE FROM sites; DELETE FROM packages; DELETE FROM files;'
;;
*)
echo "Usage: appfs-cache {invalidate|clear}" >&2
exit 1
;;
esac
exec appfsd -sqlite3 "${statement}"