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
0
votes
0answers
14 views

Getting all items in the cart in Magento 2 with FPC turned on

I would like to get all items in the cart with Full Page Cache (FPC) turned on Normally I would do something like: use Magento\Checkout\Model\Session; public function __construct( ... ...
0
votes
2answers
33 views

Varnish doesn't display full page with Magento 2

I'm having a weird issue while configuring Varnish with my Magento 2 store. My setup is such that I'm using a frontend server that routes the requests first to Varnish and then to Apache (as a ...
0
votes
1answer
35 views

Varnish cache always MISS on dynamic pages

Varnish doesn't seem to be working properly for dynamic pages, it always returns a MISS in the response headers whether the request is coming from the browser or the CLI (curl/wget). curl -IL -X GET '...
0
votes
1answer
22 views

Setting varnish full page cache settings via environment variables

I'm trying to set the varnish settings through environmental variables. I have the following ones set: CONFIG__DEFAULT__SYSTEM__FULL_PAGE_CACHE__VARNISH__BACKEND_HOST: varnish-service ...
0
votes
0answers
23 views

Full-page cache breaks store switcher

FPC is activated on the site. When I switch the store view on the Home page the Category page changes the language but the switcher remains unchanged. The store code is added to the cookie correctly. ...
2
votes
1answer
33 views

Magento 2: How to use cacheable=false in referenceBlock?

I want to set cacheable=false in referenceBlock, Can anyone help to set up this, please. Any help would be appreciated. Thanks in advance.
1
vote
1answer
27 views

How does the cache work in Magento2?

I have a question and it is if Magento2 cleans the cache after reindexing data, is it like this? For example, if the stock in a product is changed and re-indexed. Magento2 clears the cache so that the ...
0
votes
2answers
32 views

How to use type for event in xml?

I want to call my observer after the adminhtml_cache_refresh_type event and specifically after full_page This method does not work, is there a way to do this in observer? <event name="...
0
votes
1answer
16 views

Custom cache does not gets cleaned from admin cache management

I am trying to clear custom created cache from Admin, but it does not work. is their any way to make it work ?
1
vote
0answers
63 views

Product price won't update on product page front end. Cache stuck

I have a product that has a sale price of 199.99 and an original price of 240. In my index table I can see that the price has been indexed: (catalog_product_index_price): '123', 'cust_grp', '...
0
votes
1answer
26 views

How to make cache for specific url by programmatically?

I need suggestion. I do not have an Idea to set cache for specific page url. For example I have an Url : http://127.0.0.1/magento234/women/tops-women/jackets-women.html How can I set full page cache ...
1
vote
1answer
152 views

Magento 2.3.5 stop cache invalidate when work in admin

I have a magento 2.3.5p1 store. It is configured to use Varnish as FPC. Although I have set in magento admin the TTL for one week in server stats I see very low cache hit. Around 5%. I am suspecting ...
0
votes
1answer
21 views

Magento2 - Why no cache memory on Content->Widgets grid view in admin panel?

In most Magento Admin grid view, they can remember admin user searching params even if they quit that page. For example: Stores-> All stores page But in Content->Widgets page, it is not ...
0
votes
1answer
29 views

error in after magento 2 footer

I am getting text like Method, Total (ms),Average (ms),Count in footer when I change website mode developer to production mode. Can someone help me with this? How can I resolve this?
1
vote
1answer
71 views

Magento 2 and Varnish - Does it cache prices?

One thing I don't understand about Varnish for M2 is how it will work with prices. Especially since M2 is meant for B2B, there could be customer groups with different prices. So when user 1 (customer ...
0
votes
3answers
404 views

Magento 2.2.6 disk space utilization - /var/lib/mysql/ folder is taking 43 gb

Due to some reason my magento 2 website (Magento ver. 2.2.6) taking too much space from the server . Yesterday there is 1.2 gb available now only 240mb available . Please help on this . Please see ...
0
votes
1answer
14 views

Indexer catalogrule_rule is set to invalid and causes the cache to be flushed a lot

I'm having a slowness issue on my client cloud instance. Indexer catalogrule_rule is set to invalid and flush the caches a lot so the site is always slow even when we have the Miravit cache warmer ...
0
votes
1answer
36 views

solution to invalidate private content?

Please help me, I want to know exactly how the Invalidate private content works? the solution to invalidate private content? example: when I add to cart in Magento 2, how to identify change data and ...
0
votes
1answer
156 views

Why I see X-Magento-Cache-Debug in production mode?

I have Varnish configured in my server and my project is running in production mode, even though, I continue seeing the debug tag X-Magento-Cache-Debug in the header. According to Devdocs - Varnish ...
0
votes
1answer
66 views

How to remove cache from my Block class?

I need to remove the cache from my Block class, even if it removes the cache from the entire page. How could I do it?
0
votes
0answers
23 views

I need to exclude a block or code in phtml file in Amasty FPC

my block name as i see it from Amasty's Display All Block Names is cookies.after_body_start. In this block i have scripts to load if visitor have allow coockies. I have tried to add it in amfpc.xml ...
0
votes
0answers
43 views

Magento 2 page cache url parameters price override

I have created a customization using a plugin that will change the configurable product page price based on url parameters. It works, however Magento is caching the page after the first page load. If ...
0
votes
1answer
160 views

Minicart quantity number not update with full page cache in custom theme

I'm using Magento CE 2.3.4. I used a custom theme for my website. In my top menu template, I tried this code to show my minicart and mini item quantity number: $counter = $this->helper('\Magento\...
0
votes
0answers
16 views

Magento 2 FPC invalidate homepage, specific product page and specific category cache in observer

I need to create on observer that should invalidate cache of the homepage, a specific product page and a specific category cache when a trigger occurs. Anyone can help ? Thanks !
0
votes
0answers
11 views

Magento 2 what to use instead of cacheable=false

I just want to know what to use instead of "cacheable=false" as I have found more of the blogs for this not to use because of full page cache, so I just want to know what is proper method. I have ...
0
votes
0answers
21 views

extending Magento\Catalog\Block\Product\View but getProduct() is cached?

I have an api call to a 3rd party that I need to make on a product page. However the api call is particularly slow. I want to cache the results of the call on a product page. I have extended the ...
0
votes
0answers
26 views

Varnish cache test error on extension upload

I have created a custom module for filter some product collection. When I try to upload this extension to Magento marketplace. I pass the reviews Marketing Review, Code Sniffer and Copy Paste ...
0
votes
1answer
54 views

Magento 2.2.3 I want to show how many quantity is already added for each product in category page

I've added one field to show already added qty on the category page. I've made it the place next to the add to cart button. When I click the add to cart button, it increases the qty. But the problem ...
0
votes
0answers
18 views

How to Disable Cache For A Custom Block in Product Page

I want to Disable a Cache for a Block in the Product page Before What I have tried so far is 1st Try cacheable="false" | it Gives an FPC issue affecting performance and Marketplace issue as well ...
0
votes
0answers
82 views

X-Magento-Vary Cookie getting lost

As the title says, the X-Magento-Vary cookie isn't working that well on my website. Sometimes, whenever a customer logs in, the cookie isn't created and that makes the user lose the session as soon as ...
0
votes
0answers
107 views

Magento CACHE folder very big?

I have been checking in the Magento folder of /var/ and I notice whenever I clean FPC in my Magento admin the "cache" folder doesn't get cleaned the file size remains the same - how should I clean ...
0
votes
1answer
34 views

Display content for specific user

I'm trying to display content for admins only on the frontend (product view), however, with FPC enabled, once an admin opens that product, all the other users will see that same content. I have the ...
1
vote
1answer
336 views

Magento 2.3.3 - Varnish session issue

I'm having a bug with the Varnish Caching and after investigating and searching for a solution, I'm still not able to solve the problem. The FPC is working fine most of the times, but sometimes the ...
0
votes
0answers
21 views

What could cause Magento 2 FPC to get invalidated?

Without any backend operations I am seeing product and category pages getting invalidated within 24 hours. Store uses Varnish for page cache and Redis for session.
0
votes
1answer
33 views

Full Page Cache not Working, no X-Magento-Cache-Debug header present

The full-page cache is not working, when switching to developer mode, there is not even an X-Magento-Cache-Debug header
0
votes
1answer
49 views

Magento controller only executing once - cannot disable cache

I have a controller that only executes once after the cache is cleared. After that the response is always the same - cache is there instead of a new execution. The class is extends\Magento\Framework\...
0
votes
0answers
20 views

Saving product gets very slow with increasing size of FPC cached data

Our Magento (1.9.x) shop has installed Lesti_FPC extension which is working great on the front-end but makes back-end really slow when the size of folder var/cache gets bigger. Saving product changes ...
0
votes
2answers
54 views

Error when trying to change Caching Application

I was trying to get a Magento 2.3.2 store to use a different caching mechanism rather than the built in one but every time I attempt to change this I am met with a 500 error and the store just reverts ...
2
votes
1answer
55 views

Disable cache for particular custom block called in layout xml

I want to disable cache only for particular block which is called in some pages like Home Page, Category Listing page , Product page and Shopping cart page etc. <block class="Namespace\Module\...
0
votes
2answers
259 views

How to use dynamic blocks with Full Page Cache in Magento 2?

I am using Magento 2.3.2. I have some dynamics blocks which are getting called in some pages. If I disable FPC, the blocks are working fine. But as we enable FPC, They don't work perfectly. Also, By ...
0
votes
2answers
143 views

How to disable front end price caching, Magento 2.3

We have a need to display customer specific prices on the front end. Our current implementation would work if it were not for caching (Full-Page Caching if I've understood correctly). Is there a way ...
0
votes
3answers
498 views

Magento 2 Header Sign In Sign Out Issue

I have ultimo theme on magento 2.3.3 with redis and varnish. After Sign Out the link still displays Sign Out and vice versa. Becomes normal after cache is flushed. looks like cache issue. Any help ...
1
vote
2answers
82 views

How to manage cache issue on toplink in mageno 2?

I am showing logged in username in Magento2 toplink. But due to Magento full page cache, it showing another username. I tried using cachable="false" for toplink block. It works on the MyDashboard ...
0
votes
1answer
88 views

All Page Cache (FPC) Invalidated When Saving Any Product

I am trying to work out why page cache is invalidated/cleared whenever a product is opened and saved. The expected behaviour: would be that if you edit product A all product pages and categories that ...
1
vote
2answers
52 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
139 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
66 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
2answers
98 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
87 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
55 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/...

1
2 3 4 5
8