From 0233edcbb60f6e7ca2b74fe2fe1a551a8a692a4a Mon Sep 17 00:00:00 2001 From: Matthew Butterick Date: Thu, 1 Mar 2018 16:11:35 -0800 Subject: [PATCH] reset cache in tutorial --- pollen/private/ts.rktd | 2 +- pollen/scribblings/tutorial-second.scrbl | 14 ++++++++++++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/pollen/private/ts.rktd b/pollen/private/ts.rktd index 18adc72..2b91395 100644 --- a/pollen/private/ts.rktd +++ b/pollen/private/ts.rktd @@ -1 +1 @@ -1519828616 +1519949495 diff --git a/pollen/scribblings/tutorial-second.scrbl b/pollen/scribblings/tutorial-second.scrbl index 02af72e..d8cc6e1 100644 --- a/pollen/scribblings/tutorial-second.scrbl +++ b/pollen/scribblings/tutorial-second.scrbl @@ -828,9 +828,19 @@ barticle.html.pmd You also probably noticed that the files are in a different order than they were in the automatic pagetree: @filepath{carticle.html} is first, followed by @filepath{article.html} and then @filepath{barticle.html}. This too is deliberate, so we can see what happens with a differently ordered pagetree. -Pagetrees don't change as often as other source files, so as a performance optimization, the project server ignores them when deciding whether to refresh a file. Thus, after updating a pagetree, you have to trigger a refresh manually. The easiest way is to restart the project server — go to your terminal window, stop the project server with @onscreen{ctrl+C}, and then restart it. +Pagetrees don't change as often as other source files, so as a performance optimization, the project server ignores them when deciding whether to refresh a file. Thus, after updating a pagetree, you have to manually reset your project. Go to your terminal window and stop the project server with @onscreen{ctrl+C}. -Now refresh @filepath{carticle.html}. You'll notice that the navigation links are different. You won't see a previous-page link — because @filepath{carticle.html} is now the first page in the pagetree — and the next page will show up as @filepath{article.html}. Click through to @filepath{article.html}, and you'll see the navigation likewise updated. Click through to @filepath{barticle.html}, and you'll see ... +Then clear Pollen's cache of rendered pages: + +@terminal{ +> raco pollen reset} + +And restart the project server: + +@terminal{ +> raco pollen start} + +Now click on @filepath{carticle.html} again. You'll notice that the navigation links are different. You won't see a previous-page link — because @filepath{carticle.html} is now the first page in the pagetree — and the next page will show up as @filepath{article.html}. Click through to @filepath{article.html}, and you'll see the navigation likewise updated. Click through to @filepath{barticle.html}, and you'll see ... BAM! An error page that says