Change when file listeners are registered in order to make cache invalidation work
This commit is contained in:
parent
096f5ee356
commit
0309753561
|
@ -15,14 +15,16 @@ module Middleman
|
|||
scoped_self = self
|
||||
@waiting_for_ready = true
|
||||
|
||||
# Register file change callback
|
||||
@app.files.changed do |file|
|
||||
scoped_self.touch_file(file)
|
||||
end
|
||||
@app.before_configuration do
|
||||
# Register file change callback
|
||||
files.changed do |file|
|
||||
scoped_self.touch_file(file)
|
||||
end
|
||||
|
||||
# Register file delete callback
|
||||
@app.files.deleted do |file|
|
||||
scoped_self.remove_file(file)
|
||||
# Register file delete callback
|
||||
files.deleted do |file|
|
||||
scoped_self.remove_file(file)
|
||||
end
|
||||
end
|
||||
|
||||
@app.ready do
|
||||
|
|
Loading…
Reference in a new issue