Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [full-page-cache]

Full Page Cache from the PageCache Enterprise module. Tag might also be used for CE FPC solutions, within the scope of the site (see tag wiki)

1
vote
0answers
29 views

Magento 2 - Disable Page cache for login/register page

I am facing issue with FPC, login and register pages, are adding in Page Cache, I need to disable it. I have idea that if we add cacheable="false" in any one of block that is used in login/register ...
2
votes
0answers
31 views

Magento 2 - Page cache with hole punch

Magento page cache cached some of the blocks that has dynamic value, like Wishlist count on header for logged in customers I can make it dynamic using Ajax, but then it came to my knowledge that it ...
1
vote
0answers
9 views

How to clear specific block cache in magento2 based on third party api response?

I want to clear category page cache when third party does not return any response and it should be just one time when response 200 i have to clear category page cache again.How to clear specific block ...
2
votes
0answers
12 views

Magento 1.14.4.0: Programmatically clear cache of individual product

I need to clear the cache for individual product. For example, If admin change any detail/price/qty of product. I need to run script that clear the cache for that particular product only. I am running ...
1
vote
0answers
35 views

Magento 2.3 - Set vary string (X-Magento-Vary) before page content is loaded from Varnish FPC

I have different versions of the homepage depending on customer input on the page that sets a custom cookie myCookie. I created a plugin that adds this cookie value to the vary string before it is ...
2
votes
1answer
21 views

filtering product collection on category page based on custom customer attribute

I've been struggling with Magento\Catalog\Block\Product\ListProduct::initializeProductCollection() from a few days. I need to filter category product collection based on user's location. So ...
1
vote
0answers
17 views

env.php changes when enabling Varnish

app/etc/env.php has the following for cache settings: 'cache' => [ 'frontend' => [ 'default' => [ 'backend' => 'Cm_Cache_Backend_Redis', '...
1
vote
0answers
31 views

Magento 2 ui list component issue with enabled FPC

I use UI list component to show custom product listing on frontend on cms view page. Here an example how I put it to layout: <container htmlTag="div" name="ui-listing-knockout" htmlClass=...
0
votes
1answer
52 views

Varnish cache not clearing from magento admin

M2 Version : 2.2.2 PHP : version : 7.1.26 Varnish version : 6.0.2 Server : Nginx I have configure varnish in my magento website it working well i have checked in frontend and and passed all ...
0
votes
0answers
25 views

Magento 1.9.3.8 Redis version

I am using Magento 1.9.3.8 with Redis 3.0.6 as backend cache and also my FPC extension is using it for storing files. I am wondering if Magento is still working with latest Redis 5? I can't find ...
1
vote
1answer
34 views

Does FPC respect block lifetime?

Example: FPC lifetime is 1 day but a page contains a block with a lifetime of 1 hour. How will that be handled? Will the page be served from the cache after the hour?
1
vote
1answer
28 views

Cache aware display of “product is new” badge

This is a follow up of Magento2 : How to show New label in product list page If I understand the proposed solution correctly, the product will still be shown as new as long as the full page cache ...
0
votes
3answers
66 views

Magento 2 override cacheable=“false” with own theme

I'm trying to override a Magento default xml layout file vendor/magento/module-review/view/frontend/layout/customer_account_index.xml <referenceContainer name="content"> <block class="...
0
votes
2answers
31 views

Magento 2 Remove Page Cache in Home Page

I don't want cache to happen with home page but need them for all other pages. I am new to Magento and on going through I found that cacheable="false" in block will ignore cache in that page. How ...
0
votes
0answers
26 views

Magento Amasty FPC and Dynamic Content

We have Amasty FPC and want to use their hole punch method for Dynamic Content but I’m a little confused on the XML configuration file. Their is two methods which have the block exclusions - one is ...
0
votes
0answers
15 views

Magento 2 caching currency till hit F5 key

I'm having a problem with the currency and the cache. I'm using Magento ver. 2.2.5 with Redis and Varnish. Here are the steps to reproduce... Go to homepage Go to some PLP Change the currency Go to ...
2
votes
3answers
356 views

Magento 2.3 - homepage redirect to 404 page not found

Magento2.3 homepage redirects to 404 page not found. And this only occurs when (not logged in, only in desktop view) in site. After logged in, homepage working properly. And also work in mobile view. ...
0
votes
0answers
35 views

How to increase the Page-speed score in Magento 1.9.2.4?

We have created a Website with Magento 1.9.2.4. The page-speed score of our website is too low. How to increase the Page-speed score in Magento 1.9.2.4?
0
votes
1answer
42 views

Magento 2: Cache problem Cart items drops

Have been struggling with this problem for some time now and its a bit confusing. The problem is the following that my cart drops the products added when I visit a new category on the site. When FPC ...
0
votes
1answer
54 views

Page cache issue, my plugin only works after the first page load

I have created a module that autoselects a currency based on the user's country using a plugin for Magento\Store\Model\Store::getDefaultCurrencyCode() . On the first page load it will show the ...
0
votes
2answers
26 views

how to get productId in sign up or sign in page when full page cache on in magento2?

I want to redirect page if customer come from product page ->sign up page i want redirect them after sign up on product page. But i am not getting product id on that page if full page cache is on in ...
0
votes
0answers
43 views

Issue when Full page cache enable in magento2

I have found issue related to full page cache enable. I am not able to remove the label on document ready in magento2 <script type="text/javascript"> require(['jquery'], function ($) {...
0
votes
0answers
12 views

Put price.phtml into a specific block to exclude it from Lesti FPC?

I am not showing prices to guest users, only to those that are logged in. I am also using Lesti FPC. The problem here is, that Lesti caches the shown prices and shows them to not logged in users or it ...
0
votes
2answers
363 views

Customer Session not working on full page cache in magento2

This is my code below $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $customerSession = $objectManager->create('Magento\Customer\Model\Session'); if ($...
0
votes
0answers
33 views

Changing Price of Product in All Pages instead of Being Full Page Cache in Magento 2

I am used Magento 2 full page cache. So all the data come from Magento 2 Cache. So if I saved the specific page or product only then data will be updated otherwise everyone will show the same data. ...
0
votes
2answers
111 views

Magento 2 Header Sign In Sign Out Issue on Home Page

I'm facing an issue on Magento 2.2 . The details are as under 1.Go to home page 2.Click 'Sign In' from header 3.Enter login credentials to enter customer account 4.Click website logo to go back ...
0
votes
1answer
89 views

Exclude header.phtml from Lesti FPC?

I tried excluding page/html/header.phtml from caching with Lesti FPC, but failed so far. How can I exclude that template file? Magento 1.9.3
2
votes
0answers
18 views

M1: How to invalidate the fpc manually for a product page?

I need to investigate an issue around full page cache (fpc) in M1, because we sometimes receive 404 errors on product pages when the cache is invalidated - and no 404 pages anymore after the cache has ...
2
votes
0answers
41 views

Magento 2 /var/page_cache gets HUGE

I am running a Magento 2.1.9 Shop with the built in FPC enabled. After a couple of days the /var/page_cache folder has over 10GB more in size, after some more days its 15GB and so on, it never stops, ...
1
vote
0answers
24 views

Cache Expiring Too Quickly

Hey so I've been wrestling with this one for a bit now. I have our store pretty much setup and am in the performance testing phase trying to get the site as speedy as possible. I'm using Magento's ...
1
vote
1answer
119 views

Apache SetEnfIf and fullpage cache: Start page shows the same store view for all URLs, once cached

We have a setup with a public facing NGINX reverse proxy that sets the head X-Magento-Store and the shop instance on an apache Vhost in apache I added SetEnv MAGE_RUN_TYPE "store" ...
0
votes
1answer
14 views

Magento 2.2.4 fullpage cache settings not appearing in the backend

Can anybody say why my fullpage cache settings is not appearing? Thanks.
2
votes
0answers
23 views

magento 2 block duplication

i am facing a problem in my custom module. my configuration cache is getting invalidate and when i click on pager or Pagination link, the phtml renders in URL Bar. URL Bar: and the block is being ...
3
votes
0answers
447 views

Magento2 - Full page cache issue with multiple stores

I have multiple storeviews for my Magento2 website. It is working fine until Full Page cache enabled from Store -> Configuration -> Advanced -> System -> Full Page Cache -> Built-in ...
3
votes
0answers
28 views

Compressing the Page Cache

My Full Page Cache Currently takes ~1 GB Space. My total allotment of disk is 7 GB. The performance and everything is great, however I am concerned about disk space. I am using 80% of disk space right ...
1
vote
0answers
25 views

Magento 2 Full Page cache configuration in admin greyed out

The Full Page Cache from - Stores -> Configuration -> Advanced -> system -> full page cache It's greyed out, like in screenshot. I have chosen Default config from Store View, I was able to ...
4
votes
1answer
352 views

How to disable cache for perticular template file in magento 1.9?

We have used full page cache but some particular part of section not reflected. for example, we have a select city in the dropdown but not reflected. check my site- https://vidyutbazar.com/ A ...
2
votes
0answers
32 views

Disable the full_page cache for a specific controller

I have a controller that I want to exclude from the full page cache however want to cache the block rendered within the controller. I have tried the below code however this does not seem to work: ...
0
votes
0answers
13 views

Activate cache systems based on environments

How can I enable only some types of caches in the Dev environment and activate them all in Production? Is there a way to write these configurations in static files like local.xml?
0
votes
0answers
13 views

Cache management on collection

I am creating a custom magento 2 module of a blog. I have a block : <?php namespace Formation\Blog\Block; class Posts extends \Magento\Framework\View\Element\Template { public function ...
0
votes
1answer
35 views

Question for the Purge Experts!

Setup: Magento 2.2.4 Multi-Store (running on Apache server) Varnish 5.2.1 (in combination with Hitch to handle ssl) Redis 4.0.11 Problem: When saving a product not only the related categories/...
1
vote
0answers
23 views

Is this right way to retrive data from context to solve full page caching issue in product detail page Magento2?

I have refer sign in functionality on header where use customer data from context to check that customet is logged in or not? So Can we use similar concept for product detail page? Is this right way ...
0
votes
2answers
110 views

Magento2: how to fetch product id from local storage in observer

i want product id from local storage in observer is there any easy way to do it?
2
votes
1answer
190 views

How to add a remove link on product detail page, if it's already added on wishlist in magento2?

I want to add wishlist remove link if product is already on wishlist in Magento2. I have tried but it's not working when fullpage_cache is On 1. 2. 3.
0
votes
0answers
37 views

Magento 2 clearing cache per customer group

Is it possible to clear the cache just for 1 customer group? If yes how do you do this?
0
votes
0answers
71 views

Magento 2 Configurable product price missing FPT

We have a custom functionality that switches delivery country dynamically on a customer session. Based on this FPT is added to the price. We have a problem for configurable products. Once the product ...
1
vote
0answers
76 views

Lesti FPC customer login/logout issue

I recently started using Lesti FPC in one of my M1.9 sites and for the most part it works pretty well. But I came across an issue with customer login/logout. To better explain the issue, let's say ...
0
votes
0answers
68 views

Magento 2 store switcher - store cookie not changing because of full page cache

I have a Magento 2 site with a basic store switcher that lets the user switch between 2 stores using the URL method (e.g __store=default). When I have FPC enabled, the cookie that sets the current ...
0
votes
1answer
438 views

how to set no-cache HTTP headers in controller in magento 2

I have read in Magento 2 Dev Docs for Public content we can set no-cache HTTP headers for Controllers that don’t use layouts(last line in page). Controllers that don’t use layouts should set no-...
0
votes
1answer
579 views

Magento 2 full page cache invalidates everything

i do not know if this is a bug or by design. I have been searching and getting a lot of mixed signals. running magento 2.2.5 with built in cache and redis. i dont know why, but when i change 1 ...