We’re rewarding the question askers & reputations are being recalculated! Read more.

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)

Filter by
Sorted by
Tagged with
1
vote
2answers
21 views

magento 2.3 in live site css changes not taking it always taking old css which not exits

I am using magento 2.3.2 after development I have upload it in the live site and every thing was working perfectly then i hav installed mirasvit cache warmer in live then when ever i try to upload new ...
2
votes
2answers
24 views

Magento 2 : \Magento\Customer\Model\SessionFactory $customerSession is not working with FPC

If we need to get current customer sessions in a block, cacheable must be set to false in the layout XML. I am using \Magento\Customer\Model\SessionFactory $customerSession in my block but it is not ...
0
votes
1answer
32 views

How does $block->customerLoggedIn() work with Magento's cache?

I see there are two ways Magento2 renders content in the header for logged-in vs logged-out customers. With KnockoutJS in header.phtml With PHP in customer.phtml Which is considered best practice? ...
0
votes
1answer
34 views

Magento2 - Why Varnish is better the Full Page caching in Magento2

Magento2 officially recommend to use Varnish on production as it's much faster than the built-in cache, but they don't describe why it's better than the Full Page cache and what are the missing ...
2
votes
1answer
21 views

Event not fired when Full Page Cache is enabled in Magento 2

I am trying to run a piece of code on every page load. I have the following <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/...
2
votes
0answers
19 views

Magento2 : Add to cart is not working on enable FPC

On my magento2 store add to cart is not working when enabling FPC. /Checkout/cart/add ajax returning 302 error on click on add to cart button - When FPC disable then all works fine, /checkout/cart/...
2
votes
2answers
45 views

File page-cache.js not loaded in head

I have some problems with form_key when default FULL PAGE CACHE enabled. And i found out that page-cache.js doesn't load in head section. And there is no "X-Cache:" headers. I've tried everything.. ...
0
votes
1answer
33 views

Magento 2 : Get current_category is cached and shows wrong IDs on category submenu

I have created a module to avoid an objectManager. In this I have public function getCurrentCategory() { return $this->_registry->registry('current_category'); } On my phtml file I ...
0
votes
0answers
68 views

AH01070: Error parsing script headers in PHP-FPM when accessing certain product detail pages in development mode

So I am getting after some probably unrelated changes the error [Wed Sep 04 16:00:18.155246 2019] [proxy_fcgi:error] [pid 22240] [client 192.168.0.160:35618] AH01070: Error parsing script headers [...
0
votes
0answers
39 views

Unable to clear Magento cache

Got some really strange behaviour with Magento 2.2.8. Seems like the cache (using Magento built in cache) and site environment settings are locked and will not change. I have disabled caching ...
0
votes
0answers
19 views

Problems with Cache Control Magento 2

How I change the cache-control to have the same properties of x-magento-cache-control on response Header? Above my inspect: cache-control: max-age=0, must-revalidate, no-cache, no-store (I Need ...
0
votes
0answers
22 views

Magento 2: CDN Recommended for Magento 2, Community Edition

We were examining the possibility of adding a CDN service for our platforms on Magento 2. However, this possibility had already been adopted in the past and had created several problems with the ...
0
votes
0answers
27 views

Add to cart very slow after install amasty full page cache

I installed Amasty full page cache(1.8.21) to speed up my site(magento 1.9.4.1 porto theme). everything is fine but after a few hours adding products to the cart is very slow. but when i flush caches, ...
0
votes
1answer
11 views

Magento 2: Which pages are cached via FPC?

I'm having issues with cache and I would like to know which pages are natively cached and uncached by Magento 2?
0
votes
0answers
21 views

Magento 2.2 customer attribute value not update on front-end if cache it not cleared?

I have created a new customer attribute. In a custom page, I want to show that new attribute's value. Due to the full page cache, it doesn't show the data as I update it from the backend until I ...
1
vote
2answers
90 views

Magento 2: The style.css inside Magento installation directory is effecting cache

I am very new to Magento. Recently I have to add extra styles to my magento website. So I go to adminpanel -> content-> design->configuration->my theme ->HTML Head I add the following ...
0
votes
1answer
31 views

Magento 2.2 Random frontend display issues and 500 error reports

We are running a large Magento site (17 store views) with several custom modules installed. Most of the time the sites are stable and performing well, however, we do get some random issues where the ...
1
vote
1answer
143 views

Magento 2.3.1 varnish and cloudlfare - pages not caching as expected

We have a Magento 2.3.1 store that uses CloudFlare and has Varnish enabled. If we use wget or curl to load a page, that page is cached in Varnish if we try wget or curl again on that same page. ...
0
votes
2answers
34 views

Empty URL in cache_invalidate log entires

I'm monitoring the debug.log file to see when the cache for specific products get invalidated and I see frequent entries like this: main.DEBUG: cache_invalidate: {"method":"GET","url":"http:/","...
3
votes
0answers
33 views

Cache issue in magento 1

Hello I have used ves and varnish full page cache extensions for better speed performance but it is creating some issues now like my cart page is not showing all newly added product or showing old/...
3
votes
3answers
162 views

Caching not working after upgrading to 2.3.2

After I update my Magento 2 installation to 2.3.2 from 2.3.1 the site caching seems not working as expected. I've double checked the FPC enabled, the site is in production mode. Still, the first ...
0
votes
1answer
73 views

Not able to disable block cache without affecting Magento FPC

I have created a custom block where I am showing the number of items in the cart and also loggedin the customer name. I am getting correct count and customer name on checkout page.But not on any other ...
5
votes
3answers
116 views

Magento 2 - Categroy, CMS and Product page changes are updating along with Page Cache

I have page cache enabled and it is working fine. In Magento 1.9 when I update anything on website then I have to flush full page cache (Amasty plugin) otherwise changes wont reflect on frontend. ...
1
vote
0answers
72 views

How to save cookies in magento 2 without disabling full page caching

I have created a plugin to for the layered naviagtion filters. Fore this I need to save the filter chosen in the cookies but the cookies are now saving. When I disable the full page caching, then ...
3
votes
0answers
50 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 ...
1
vote
1answer
70 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
62 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 ...
2
votes
1answer
350 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
40 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 ...
1
vote
0answers
21 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
96 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
27 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
59 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
64 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
30 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
266 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
89 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 ...
4
votes
1answer
143 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 ...
3
votes
1answer
223 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
12 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
38 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
61 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
91 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
45 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
458 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 ...
1
vote
0answers
49 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
46 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
38 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
401 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
201 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 ...