mikebronner / laravel-model-caching

Eloquent model-caching made easy.
MIT License
2.26k stars 217 forks source link

when use protected $cacheCooldownSeconds = 300; // 5 m not expire #307

Open vahidalvandi opened 4 years ago

vahidalvandi commented 4 years ago

i set $cacheCooldownSeconds = 300 but after edit database manually after 5 minute cache not rest

mikebronner commented 4 years ago

@vahidalvandi Please provide more information:

Eloquent Query

Please provide the complete eloquent query that caused the bug, for example:

$model->with('otherModel')->get(); Stack Trace The full stack trace from your log file.

Environment

PHP: [e.g. 7.1.0] OS: [e.g. Ubuntu 18.04] Laravel: [e.g. 5.6.15] Model Caching: [e.g. 0.2.61]

Additional Context

Add any other context about the problem here.

liuwei73 commented 4 years ago

try this

public $cacheCooldownSeconds = 300;