Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow regenerateDelay to be user configurable #426

Closed
wants to merge 1 commit into from
Closed

Allow regenerateDelay to be user configurable #426

wants to merge 1 commit into from

Conversation

homme
Copy link

@homme homme commented Feb 8, 2013

A new configuration option regenerateDelay has been added. Defaulting
to 100, this option specifies how long docpad waits after a source
file has been changed before using it to regenerate a page.

In situations where source files (especially large files) are being
updated over the network (e.g. via FTP) it can be useful to increase
this option: not doing so can cause files to be partially rendered due
to the fact that a watch and subsequent render are triggered before
the file has finished being written to.

A new configuration option `regenerateDelay` has been add. Defaulting
to 100, this option specifies how long docpad waits after a source
file has been changed before using it to regenerate a page.

In situations where source files (especially large files) are being
updated over the network (e.g. via FTP) it can be useful to increase
this option: not doing so can cause files to be partially rendered due
to the fact that a watch and subsequent render are triggered *before*
the file has finished being written to.
@balupton
Copy link
Member

balupton commented Feb 8, 2013

Looks good to me. Will merge this in for the next release! :)

@balupton
Copy link
Member

balupton commented Feb 8, 2013

Can you also send a pull request to https://github.com/bevry/docpad-documentation/blob/master/core/config.html.md so the docs are up to date :) Cheers!

@homme
Copy link
Author

homme commented Feb 8, 2013

Will do, thanks!

@homme
Copy link
Author

homme commented Feb 8, 2013

This has been done in docpad-archive/documentation/pull/15: cheers!

balupton added a commit that referenced this pull request Mar 25, 2013
- v6.27.0 March 25, 2013
	- Engine requirements are now:
		- node >=0.8
		- npm >=1.2
	- Iconv is now a lazy loaded dependency
		- Thanks to [jhuntdog](https://github.com/jhuntdog) for [issue
#468](#468)
	- Added `regenerateDelay` configuration option
		- Thanks to [Homme Zwaagstra](https://github.com/homme) for [pull
request #426](#426)
@balupton balupton closed this Apr 7, 2013
balupton added a commit that referenced this pull request Oct 23, 2013
- v6.27.0 March 25, 2013
	- Engine requirements are now:
		- node >=0.8
		- npm >=1.2
	- Iconv is now a lazy loaded dependency
		- Thanks to [jhuntdog](https://github.com/jhuntdog) for [issue
#468](#468)
	- Added `regenerateDelay` configuration option
		- Thanks to [Homme Zwaagstra](https://github.com/homme) for [pull
request #426](#426)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants