Skip to content

Commit

Permalink
Apply request_on_entry_save config
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartcusackie authored Nov 3, 2023
1 parent a7b9dcd commit 611a93b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ protected function registerCommands()

protected function registerListeners() {

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

return $this;

Expand Down

0 comments on commit 611a93b

Please sign in to comment.