diff --git a/api/Controllers/v1/HizbQuarter.php b/api/Controllers/v1/HizbQuarter.php index 80340b2..d1e9946 100644 --- a/api/Controllers/v1/HizbQuarter.php +++ b/api/Controllers/v1/HizbQuarter.php @@ -26,7 +26,7 @@ public function getByNumber(ServerRequestInterface $request, ResponseInterface $ $limit = Http\Request::getQueryParam($request, 'limit'); $edition = 'quran-uthmani-quran-academy'; - $result = $this->mc->get('hq_' . $number . '_'. $offset . '_' . $limit, function (ItemInterface $item) use ($number, $offset, $limit, $edition) { + $result = $this->mc->get('hq_' . $number . '_'. $edition . '_' . $offset . '_' . $limit, function (ItemInterface $item) use ($number, $offset, $limit, $edition) { $item->expiresAfter(604800); $hq = new HizbQuarterResponse($this->em, $number, $edition, $offset, $limit); diff --git a/api/Controllers/v1/Juz.php b/api/Controllers/v1/Juz.php index bae43cd..6d20f49 100644 --- a/api/Controllers/v1/Juz.php +++ b/api/Controllers/v1/Juz.php @@ -26,7 +26,7 @@ public function getByNumber(ServerRequestInterface $request, ResponseInterface $ $limit = Http\Request::getQueryParam($request, 'limit'); $edition = 'quran-uthmani-quran-academy'; - $result = $this->mc->get('juz_' . $number . '_'. $offset . '_' . $limit, function (ItemInterface $item) use ($number, $offset, $limit, $edition) { + $result = $this->mc->get('juz_' . $number . '_'. $edition . '_' . $offset . '_' . $limit, function (ItemInterface $item) use ($number, $offset, $limit, $edition) { $item->expiresAfter(604800); $j = new JuzResponse($this->em, $number, $edition, $offset, $limit); diff --git a/api/Controllers/v1/Manzil.php b/api/Controllers/v1/Manzil.php index 51eaa25..d2ef09d 100644 --- a/api/Controllers/v1/Manzil.php +++ b/api/Controllers/v1/Manzil.php @@ -26,7 +26,7 @@ public function getByNumber(ServerRequestInterface $request, ResponseInterface $ $limit = Http\Request::getQueryParam($request, 'limit'); $edition = 'quran-uthmani-quran-academy'; - $result = $this->mc->get('manzil_' . $number . '_'. $offset . '_' . $limit, function (ItemInterface $item) use ($number, $offset, $limit, $edition) { + $result = $this->mc->get('manzil_' . $number . '_'. $edition . '_' . $offset . '_' . $limit, function (ItemInterface $item) use ($number, $offset, $limit, $edition) { $item->expiresAfter(604800); $m = new ManzilResponse($this->em, $number, $edition, $offset, $limit); diff --git a/api/Controllers/v1/Page.php b/api/Controllers/v1/Page.php index 37bedb0..efb8a3f 100644 --- a/api/Controllers/v1/Page.php +++ b/api/Controllers/v1/Page.php @@ -26,7 +26,7 @@ public function getByNumber(ServerRequestInterface $request, ResponseInterface $ $limit = Http\Request::getQueryParam($request, 'limit'); $edition = 'quran-uthmani-quran-academy'; - $result = $this->mc->get('page_' . $number . '_'. $offset . '_' . $limit, function (ItemInterface $item) use ($number, $offset, $limit, $edition) { + $result = $this->mc->get('page_' . $number . '_'. $edition . '_' . $offset . '_' . $limit, function (ItemInterface $item) use ($number, $offset, $limit, $edition) { $item->expiresAfter(604800); $p = new PageResponse($this->em, $number, $edition, $offset, $limit); diff --git a/api/Controllers/v1/Ruku.php b/api/Controllers/v1/Ruku.php index 7bee89f..551c198 100644 --- a/api/Controllers/v1/Ruku.php +++ b/api/Controllers/v1/Ruku.php @@ -26,7 +26,7 @@ public function getByNumber(ServerRequestInterface $request, ResponseInterface $ $limit = Http\Request::getQueryParam($request, 'limit'); $edition = 'quran-uthmani-quran-academy'; - $result = $this->mc->get('ruku_' . $number . '_'. $offset . '_' . $limit, function (ItemInterface $item) use ($number, $offset, $limit, $edition) { + $result = $this->mc->get('ruku_' . $number . '_' . $edition . '_' . $offset . '_' . $limit, function (ItemInterface $item) use ($number, $offset, $limit, $edition) { $item->expiresAfter(604800); $r = new RukuResponse($this->em, $number, $edition, $offset, $limit);