Skip to content

Commit

Permalink
disable model cache for recurring and reminder
Browse files Browse the repository at this point in the history
  • Loading branch information
denisdulici committed Mar 13, 2020
1 parent 7b46c7a commit bbdde42
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/Console/Commands/BillReminder.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ class BillReminder extends Command
*/
public function handle()
{
// Disable model cache
config(['laravel-model-caching.enabled' => false]);

// Get all companies
$companies = Company::enabled()->cursor();

Expand Down
3 changes: 3 additions & 0 deletions app/Console/Commands/InvoiceReminder.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ class InvoiceReminder extends Command
*/
public function handle()
{
// Disable model cache
config(['laravel-model-caching.enabled' => false]);

// Get all companies
$companies = Company::enabled()->cursor();

Expand Down
3 changes: 3 additions & 0 deletions app/Console/Commands/RecurringCheck.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ class RecurringCheck extends Command
*/
public function handle()
{
// Disable model cache
config(['laravel-model-caching.enabled' => false]);

// Get all companies
$companies = Company::enabled()->cursor();

Expand Down

0 comments on commit bbdde42

Please sign in to comment.