(defvar tramp-cache-data (make-hash-table :test 'equal)
"Hash table for remote files properties.")
+(defvar tramp-cache-inhibit-cache nil
+ "Inhibit cache read access, when non-nil.")
+
(defcustom tramp-persistency-file-name
(cond
;; GNU Emacs.
(let* ((hash (or (gethash vec tramp-cache-data)
(puthash vec (make-hash-table :test 'equal)
tramp-cache-data)))
- (value (if (hash-table-p hash)
+ (value (if (and (null tramp-cache-inhibit-cache) (hash-table-p hash))
(gethash property hash default)
default)))
(tramp-message vec 8 "%s %s %s" file property value)
(aset key 3 nil))
(let* ((hash (gethash key tramp-cache-data))
(value (if (hash-table-p hash)
- (gethash property hash default)
- default)))
+ (gethash property hash default)
+ default)))
(tramp-message key 7 "%s %s" property value)
value))