From 485dc2c06202b1e3a94301ac92ed942789f35a44 Mon Sep 17 00:00:00 2001 From: Matthew Butterick Date: Sat, 20 Jan 2018 21:35:20 -0500 Subject: [PATCH] change name to `cache-watchlist` --- pollen/private/cache-utils.rkt | 2 +- pollen/private/ts.rktd | 2 +- pollen/scribblings/setup.scrbl | 6 +++--- pollen/setup.rkt | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pollen/private/cache-utils.rkt b/pollen/private/cache-utils.rkt index 441a099..84fd794 100644 --- a/pollen/private/cache-utils.rkt +++ b/pollen/private/cache-utils.rkt @@ -26,7 +26,7 @@ ;; is either list of files or (list #f) (append (->list (get-directory-require-files source-path)) ;; user-designated files to track - (map ->string (setup:compile-cache-watchlist source-path))))) + (map ->string (setup:cache-watchlist source-path))))) (define pollen-env (getenv default-env-name)) (define poly-flag (and (has-inner-poly-ext? source-path) (current-poly-target))) (define path+mod-time-pairs diff --git a/pollen/private/ts.rktd b/pollen/private/ts.rktd index 012ae0f..3dd64ee 100644 --- a/pollen/private/ts.rktd +++ b/pollen/private/ts.rktd @@ -1 +1 @@ -1516488850 +1516502120 diff --git a/pollen/scribblings/setup.scrbl b/pollen/scribblings/setup.scrbl index 8ae4a37..4bc6f94 100644 --- a/pollen/scribblings/setup.scrbl +++ b/pollen/scribblings/setup.scrbl @@ -106,16 +106,16 @@ Default separators used in decoding. @defoverridable[compile-cache-max-size exact-positive-integer?]{Maximum size of the compile cache.} -@defoverridable[compile-cache-watchlist (listof (or/c path? path-string?))]{List of extra files that the compile cache watches during a project-server session. If one of the files on the watchlist changes, the compile cache is invalidated (just as it would be if @racket["pollen.rkt"] changed). +@defoverridable[cache-watchlist (listof (or/c path? path-string?))]{List of extra files that the cache (= render cache + compile cache, collectively) watches during a project-server session. If one of the files on the watchlist changes, the cache is invalidated (just as it would be if @racket["pollen.rkt"] changed). -If the compile cache can't find a certain file on the watchlist, it will be ignored. Therefore, to avoid unexpected behavior, the best policy is to pass in complete paths (or path strings). An easy way to convert a module name into a complete path is with @racket[resolve-module-path]: +If the cache can't find a certain file on the watchlist, it will be ignored. Therefore, to avoid unexpected behavior, the best policy is to pass in complete paths (or path strings). An easy way to convert a module name into a complete path is with @racket[resolve-module-path]: @fileblock["pollen.rkt" @codeblock{ (module+ setup (require syntax/modresolve) (provide (all-defined-out)) - (define compile-cache-watchlist (map resolve-module-path '("my-module.rkt")))) + (define cache-watchlist (map resolve-module-path '("my-module.rkt")))) }] } diff --git a/pollen/setup.rkt b/pollen/setup.rkt index 9ac7220..84a5d43 100644 --- a/pollen/setup.rkt +++ b/pollen/setup.rkt @@ -46,7 +46,7 @@ (with-handlers ([exn:fail? NAME-FAIL-THUNKED]) (dynamic-require `(submod ,(apply get-path-to-override get-path-args) WORLD-SUBMOD) 'NAME NAME-FAIL-THUNKED))))))])) -(define-settable compile-cache-watchlist null) +(define-settable cache-watchlist null) (define-settable preproc-source-ext 'pp) (define-settable markup-source-ext 'pm)