mirror of
https://github.com/silverstripe/silverstripe-staticpublisher
synced 2024-06-28 07:29:20 +02:00
Update buildcache url in documentation (Fixes: #23)
This commit is contained in:
parent
bacc1d44ba
commit
00e49ccd19
6
_config/routes.yml
Normal file
6
_config/routes.yml
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
---
|
||||||
|
Name: staticpublisherroutes
|
||||||
|
---
|
||||||
|
Director:
|
||||||
|
rules:
|
||||||
|
'dev/buildcache': '->dev/tasks/RebuildStaticCacheTask'
|
|
@ -449,20 +449,20 @@ you can build the static HTML files. This is done by the `RebuildStaticCacheTask
|
||||||
Execution via URL
|
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))
|
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`
|
Depending on which extension you've set up for your `SiteTree` (`FilesystemPublisher`
|
||||||
or `RsyncMultiHostPublisher`), the method `publishPages()` either stores the generated
|
or `RsyncMultiHostPublisher`), the method `publishPages()` either stores the generated
|
||||||
HTML-files on the server's filesystem, or deploys them to other servers via rsync.
|
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)
|
It is advisable to set `dev/tasks/RebuildStaticCacheTask` up as an automated
|
||||||
which continually rebuilds and redeploys the cache.
|
task (e.g. unix cron) which continually rebuilds and redeploys the cache.
|
||||||
|
|
||||||
## Related
|
## Related
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user