Skip to content

Commit

Permalink
Changes for cache max-age test issue
Browse files Browse the repository at this point in the history
  • Loading branch information
kedarkhaire committed Sep 23, 2024
1 parent 79c6415 commit c3b5a16
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Controller/BuyApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ protected function buildPage($plans) {
'url.developer',
],
'tags' => [],
'max-age' => 300,
'max-age' => 0,
],
'#attached' => ['library' => ['apigee_m10n/rate_plan.entity_list']],
];
Expand Down
2 changes: 1 addition & 1 deletion src/Controller/PrepaidBalanceControllerBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public function render() {
'#cache' => [
'contexts' => ['url.path'],
'tags' => $this->getCacheTags($this->entity),
'max-age' => $max_age = $this->getCacheMaxAge(),
'max-age' => 0,
'keys' => [static::getCacheId($this->entity, 'prepaid_balances')],
],
];
Expand Down
2 changes: 1 addition & 1 deletion src/Controller/PrepaidBalanceXControllerBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ public function render() {
'#cache' => [
'contexts' => ['url.path'],
'tags' => $this->getCacheTags($this->entity),
'max-age' => $max_age = $this->getCacheMaxAge(),
'max-age' => 0,
'keys' => [static::getCacheId($this->entity, 'prepaid_balances')],
],
];
Expand Down
2 changes: 1 addition & 1 deletion src/Controller/PricingAndPlansController.php
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ protected function buildPage($plans) {
'url.developer',
],
'tags' => [],
'max-age' => 300,
'max-age' => 0,
],
'#attached' => ['library' => ['apigee_m10n/rate_plan.entity_list']],
];
Expand Down

0 comments on commit c3b5a16

Please sign in to comment.