Skip to content

Commit

Permalink
Update buildcache url in documentation (Fixes: #23)
Browse files Browse the repository at this point in the history
  • Loading branch information
wilr committed Sep 16, 2013
1 parent bacc1d4 commit 00e49cc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions _config/routes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
Name: staticpublisherroutes
---
Director:
rules:
'dev/buildcache': '->dev/tasks/RebuildStaticCacheTask'
8 changes: 4 additions & 4 deletions docs/en/StaticPublisher.md
Original file line number Diff line number Diff line change
Expand Up @@ -449,20 +449,20 @@ you can build the static HTML files. This is done by the `RebuildStaticCacheTask
Execution via URL

```
http://www.yoursite.com/dev/buildcache?flush=1
http://www.yoursite.com/dev/tasks/RebuildStaticCacheTask?flush=1
```

Execution on CLI (via [sake](framework/en/topics/commandline))
```
sake dev/buildcache flush=1
sake dev/tasks/RebuildStaticCacheTask flush=1
```

Depending on which extension you've set up for your `SiteTree` (`FilesystemPublisher`
or `RsyncMultiHostPublisher`), the method `publishPages()` either stores the generated
HTML-files on the server's filesystem, or deploys them to other servers via rsync.

It is advisable to set `dev/buildcache` up as an automated task (e.g. unix cron)
which continually rebuilds and redeploys the cache.
It is advisable to set `dev/tasks/RebuildStaticCacheTask` up as an automated
task (e.g. unix cron) which continually rebuilds and redeploys the cache.

## Related

Expand Down

0 comments on commit 00e49cc

Please sign in to comment.