Stack Exchange Network

Stack Exchange network consists of 174 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)

0
votes
3answers
42 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
24 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
14 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
12 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 ...
0
votes
3answers
60 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 site. After logged in, homepage working properly. And also after clear page-cache, homepage working ...
0
votes
0answers
26 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
32 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 ...
1
vote
2answers
52 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
25 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
33 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
6 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
150 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
48 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
42 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
14 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 ...
1
vote
0answers
29 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, ...
0
votes
0answers
11 views

Prevents the entire request from being cached by Magento 2 page cache

The isCacheable() function call at the Layout.php page is returning a NULL value, which prevents the entire request from being cached by page cache. vendor/magento/framework/Pricing/Render/Layout....
1
vote
0answers
20 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
85 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
13 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
20 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 ...
2
votes
0answers
325 views

Magento2 - Full page cache issue with multiple stores

I have multiple storeviews for my Magento website. It's working fine until I enabled Full Page Cache 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
22 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
334 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
29 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
26 views

Magento 2 : Cache issue on same window

I have a strange issue in my website (Magento 2.1.9), the changes made in backend not reflecting in frontend on the same browser. ( i have waited for 3 to 5 days - no changes happening) but when I ...
0
votes
0answers
12 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
23 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
22 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
80 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
117 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. Thanks in Advance.
0
votes
0answers
26 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
47 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
57 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
50 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
258 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
426 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 ...
2
votes
1answer
108 views

How Magento manages store-wise cache

I am currently working on an architecture where I'd like to maintain separate caches (block cache, collection cache, FPC) for each zipcode. I am making the user select a zipcode at the beginning of ...
0
votes
0answers
57 views

Invalidate public content not working - Magento 2.2.2 EE with varnish

For the testing purpose, I have created one extension it displays the date time. I follow this link to invalidate the public cache content but it always displays the same time, whenever I clear the ...
2
votes
0answers
32 views

Magento 1.9.3.6 - Disable cache for a specific module [duplicate]

could someone explain to me how to disable the cache of a specific module? I have this code in cms static block: {{block type="filterproducts/featured_home_list" name="featured_list" product_count="...
1
vote
0answers
28 views

Magento 2.1 : How to create dynamic custom header link without using cacheable = false

The cacheable = false works fine, but fpc gets completely disabled and pages are too slow. Here is the default.xml <referenceContainer name="header.panel"> <block class="Custom\Mod\...
2
votes
1answer
50 views

how to create not cacheable helper method?

We have written logic to find client IP address in the custom helper. public function getIpAddress(){ .............. return $ip; } It works only at first hit after that it only displays the old ...
0
votes
0answers
59 views

How Price, Special Price, Msrp is rendering to website magento 2

A product having MSRP , Price, Special price. Product prices display in website as follows 1) price and below special price ( as low as format) 2) MSRP (strike through) and below special price Note: ...
5
votes
2answers
397 views

Difference between Session and SessionFactory in Magento 2

While working i found there are two methods of getting customer data using two session classes 1.) \Magento\Customer\Model\SessionFactory $customerSession 2.) \Magento\Customer\Model\Session $...
0
votes
1answer
245 views

Lesti FPC is caching the minicart on header

I managed to get Lesti FPC working with memcached, but I quickly ran into a problem. When I add an item to my cart from any page and go back to the homepage, it shows that my cart is empty. I ...
0
votes
1answer
52 views

onepage checkout doesn't works fine when Full Page Cache enable

When I checkout in Magento 2 from one-page checkout first time order placed successfully but the second time the order goes failure. but when I disable Full Page Cache it working fine. Without ...
1
vote
0answers
20 views

Custom page Data render from FPC magento 2

I have a custom page which gets data from the block. FPC is enabled so when I change data it is not reflecting without page cache. I do not want to use cacheable="false" in the block because it will ...