disable model cache for recurring and reminder
This commit is contained in:
parent
7b46c7ae81
commit
bbdde42165
@ -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();
|
||||||
|
|
||||||
|
@ -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();
|
||||||
|
|
||||||
|
@ -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();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user