Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
syncart-3438660
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
syncart-3438660
Commits
96ea7ce1
Commit
96ea7ce1
authored
5 years ago
by
yaroslav.kostenyuk
Browse files
Options
Downloads
Patches
Plain Diff
cache fix
parent
78168485
No related branches found
Branches containing commit
Tags
8.x-2.3
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/Controller/CartController.php
+3
-0
3 additions, 0 deletions
src/Controller/CartController.php
src/Controller/FavoriteController.php
+4
-0
4 additions, 0 deletions
src/Controller/FavoriteController.php
with
7 additions
and
0 deletions
src/Controller/CartController.php
+
3
−
0
View file @
96ea7ce1
...
...
@@ -59,6 +59,9 @@ class CartController extends ControllerBase {
'#data'
=>
[
'cart'
=>
$this
->
cart
->
renderCartPageInfo
(),
],
'#cache'
=>
[
'max-age'
=>
0
,
],
];
}
...
...
This diff is collapsed.
Click to expand it.
src/Controller/FavoriteController.php
+
4
−
0
View file @
96ea7ce1
...
...
@@ -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
,
],
];
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment