Skip to content

Commit 611a93b

Browse files
Apply request_on_entry_save config
1 parent a7b9dcd commit 611a93b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/ServiceProvider.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ protected function registerCommands()
3636

3737
protected function registerListeners() {
3838

39-
Event::listen(EntrySaved::class, EntrySavedListener::class);
39+
if(config('statamic-cache-requester.request_on_entry_save', true)) {
40+
Event::listen(EntrySaved::class, EntrySavedListener::class);
41+
}
4042

4143
return $this;
4244

0 commit comments

Comments
 (0)