perf(cache): use deleteMatching method to prevent forgetting cached elements in models

This commit is contained in:
Yassine Doghri 2021-05-31 13:32:33 +00:00
commit 76afc0cfa2
No known key found for this signature in database
GPG key ID: 3E7F89498B960C9F
9 changed files with 68 additions and 115 deletions

View file

@ -39,7 +39,7 @@ class EpisodeController extends BaseController
}
if (
($this->episode = (new EpisodeModel())->getEpisodeBySlug($this->podcast->id, $params[1],)) !== null
($this->episode = (new EpisodeModel())->getEpisodeBySlug($params[0], $params[1],)) !== null
) {
unset($params[1]);
unset($params[0]);