Skip to content

Commit

Permalink
Update some more cache hashes
Browse files Browse the repository at this point in the history
  • Loading branch information
meezaan committed Sep 8, 2022
1 parent 6fab61d commit 9e48466
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion api/Controllers/v1/HizbQuarter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion api/Controllers/v1/Juz.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion api/Controllers/v1/Manzil.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion api/Controllers/v1/Page.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion api/Controllers/v1/Ruku.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 9e48466

Please sign in to comment.