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)

0
votes
0answers
22 views

Is “hole punching” in Magento 2 just FPC (full page cache) invalidation

Looking into full page cache for Magneto 2 and I have noticed that if I try to "hole punch" my final_price.phtml block in magento by setting my getCacheLifetime to null, my final price block in still ...
2
votes
0answers
25 views

Using Customer Session Factory to avoid depersonalization

We have a plugin that adjusts the customer price on the frontend based on its customer ID. When you use the the Customer Session class it is depersonzalized for a very good reason. But when you use ...
0
votes
0answers
25 views

Magento 2 cookie not set when full cache enable

I have created one helper file that get, set and delete cookie. This helper file I called in observer to set cookie. The helper file called but cookie not set when full cache enabled. <?php ...
1
vote
0answers
34 views

Magento 2 - Recently viewed product not working with FPC

Magento default functionality of recently viewed product uses the following event to save viewed history catalog_controller_product_view And it stores in following tables ...
1
vote
1answer
37 views

Magento 2 - Use Redis in Full Page Cache

I check similar question but I am unable to find command to add Redis server for full page cache. The command to add Redis for backend cache is following: php bin/magento setup:config:set --cache-...
2
votes
0answers
22 views

Magento 2 - Get page cache by tag name in cache warmer

I am creating a cache warmer, before crawling page to re-generate cache, I want to check if page cache is created. Let's say, I have a product with the ID 156 now cache tag would be ...
0
votes
0answers
17 views

Magento 1.14.4.1: Not able to clean specific type of cache while using redis cache

I have redis which is hosted separably. I need to clean specific type of cache (i.e. block_html) using a script. The problem is that whenever I update product it doesn't reflect on the front-end side ...
1
vote
0answers
83 views

Magento 2 - Delete Single page cache

If I go to System->Tools->Cache Management, flush page cache then it will flush all the pages cache. I need to figure out the way to flush single page specifically which I want. Any help, ...
0
votes
0answers
25 views

Magento2: Full Page Cache Warmer [duplicate]

Is best solution Full Page Cache Warmer for Page Speed? I have Magento 2 site and is running very slow. Can you details how can i optimise it. Also share extension link which increase my page speed....
0
votes
0answers
52 views

AJAX login/register with Amasty_Fpc does not update full page cache

When you log in with an AJAX request, the full page cache is not updated when using Amasty_Fpc. This happens only on the page on which user log in. The problem is observed with many modules (for ...
1
vote
0answers
28 views

Magento 2 cache warmer for all customer groups

I am creating cache warmer extension for Magento 2. The main logic that I am using is: A cronjob will get all the URLs from url_rewrite table and crawl every URL using curl calls. The issue that I ...
0
votes
1answer
21 views

Full Page Cache hole punching (JS workaround)

I have timers/countdowns on my Product Pages. This code is written in PHP and is inserted as a block. The problem is, with the default M2 FPC these values get cached server-side. I believe that ...
1
vote
2answers
100 views

Different Full Page Cache for mobile and desktop

Note: Don't want to use multiple store views. I have setup 2 different home pages for my website by detecting mobile agent and desktop agent. Now the problem is, when page cache (Magento default) is ...
2
votes
0answers
36 views

Magento2 - Indexing / Full page cache problems

We are having long-term problems with indexer and cache settings. After reading great guide by @johnhughes1984 about caching and indexing we thought that everything will be alright with settings ...
2
votes
0answers
70 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
74 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
10 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
22 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 ...
2
votes
1answer
35 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
30 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
36 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
93 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
30 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
38 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
29 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
114 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
59 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
31 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
25 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 ...
5
votes
4answers
873 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
1answer
44 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
64 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
27 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
60 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
13 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
643 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 ($customerSession-&...
0
votes
0answers
37 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. ...
1
vote
2answers
179 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
122 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
23 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
48 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
25 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
139 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
24 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
482 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
32 views

Compressing the Page Cache

My Full Page Cache Currently takes ~1 GB Space. My total allotment of the disk is 7 GB. The performance and everything are great, however, I am concerned about disk space. I am using 80% of disk space ...
1
vote
0answers
26 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
355 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 ...