Skip to content
Snippets Groups Projects
Commit 96ea7ce1 authored by yaroslav.kostenyuk's avatar yaroslav.kostenyuk
Browse files

cache fix

parent 78168485
No related branches found
Tags 8.x-2.3
No related merge requests found
......@@ -59,6 +59,9 @@ class CartController extends ControllerBase {
'#data' => [
'cart' => $this->cart->renderCartPageInfo(),
],
'#cache' => [
'max-age' => 0,
],
];
}
......
......@@ -29,11 +29,15 @@ class FavoriteController extends ControllerBase {
* Favorites page.
*/
public function favoritesPage() {
\Drupal::service('page_cache_kill_switch')->trigger();
$this->getFavoritesProducts();
$this->getFavoritesInformation();
return [
'#theme' => 'syncart-favorites',
'#data' => $this->output,
'#cache' => [
'max-age' => 0,
],
];
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment