disable model cache for recurring and reminder

This commit is contained in:
denisdulici 2020-03-13 12:44:05 +03:00
parent 7b46c7ae81
commit bbdde42165
3 changed files with 9 additions and 0 deletions

View File

@ -32,6 +32,9 @@ class BillReminder extends Command
*/ */
public function handle() public function handle()
{ {
// Disable model cache
config(['laravel-model-caching.enabled' => false]);
// Get all companies // Get all companies
$companies = Company::enabled()->cursor(); $companies = Company::enabled()->cursor();

View File

@ -32,6 +32,9 @@ class InvoiceReminder extends Command
*/ */
public function handle() public function handle()
{ {
// Disable model cache
config(['laravel-model-caching.enabled' => false]);
// Get all companies // Get all companies
$companies = Company::enabled()->cursor(); $companies = Company::enabled()->cursor();

View File

@ -45,6 +45,9 @@ class RecurringCheck extends Command
*/ */
public function handle() public function handle()
{ {
// Disable model cache
config(['laravel-model-caching.enabled' => false]);
// Get all companies // Get all companies
$companies = Company::enabled()->cursor(); $companies = Company::enabled()->cursor();