From 74cc4beeeb8a53f4a8e2199622b38b5968dfb4cc Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Sat, 27 Mar 2021 13:48:16 -0700 Subject: add a DEFGENERIC for CONNECTION-CLEAR-DATA-CACHE Signed-off-by: Sean Whitton --- src/data.lisp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/data.lisp') diff --git a/src/data.lisp b/src/data.lisp index 2c3a7d9..11d9779 100644 --- a/src/data.lisp +++ b/src/data.lisp @@ -287,6 +287,12 @@ This is not allowed for security reasons.")) (push (list iden1 iden2 (remote-data-pathname iden1 iden2 data-version)) (slot-value connection 'cached-data)))) +(defgeneric connection-clear-data-cache (connection iden1 iden2) + (:documentation + "Delete all versions of the data identified by IDEN1 and IDEN2 from the remote +cache of CONNECTION. Called by UPLOAD-ALL-PREREQUISITE-DATA before uploading +new versions of data, to avoid them piling up.")) + (defmethod connection-clear-data-cache ((connection connection) iden1 iden2) (let* ((*connection* connection) (dir (ensure-directory-pathname (remote-data-pathname iden1 iden2)))) -- cgit v1.2.3