Questions tagged [cache]

Question related to Magento default caching system, full page cache or 3rd party caching solutions.

Filter by
Sorted by
Tagged with
0 votes
0 answers
14 views

Purge Varnish from Magento 2.4.6: laminas error

We did setup Varnish correctly and working fine to cache the files. However, when Magento try to purge cache on product saving or from cache management, we have the following error: [2024-04-16T02:27:...
nlegall's user avatar
  • 21
0 votes
0 answers
29 views

Magento 2 : Flush Cache Backend - Permission error

I have a server with 2 magento 2 instances installed. Each one is owned by a different user. One instance works flawlessly, the other has a small issue : when I try to flush the cache from backend I ...
Borde91's user avatar
  • 350
0 votes
0 answers
10 views

Is it possible to use Price AdjustmentInterface with Cache Context?

I know how Price Adjustment through the AdjustmentInterface (e.g. 10% off prices) work. (Magento\Framework\Pricing\Adjustment) (docs: https://developer.adobe.com/commerce/php/development/components/...
Akif's user avatar
  • 1,531
0 votes
1 answer
25 views

magento 2.4 product save 503 error after upgrade

I recently upgraded my magento 2 from version 2.4.3 to 2.4.4-p7 but, since the upgrade, the product save have been incredibly slow. If I go to the admin product page and save the product without ...
Lou Nik's user avatar
  • 443
0 votes
1 answer
33 views

Varnish cache missing in headers - Is it running at all? How to chek?

My apologies if that question is already asked - I searched thru all related questions but found a similar not exact match to my problem. What is my set: Magento 2.4.3 running on Ubuntu 22.04 server ...
rt89's user avatar
  • 11
0 votes
1 answer
29 views

How to make a block non-cacheble in default.xml

I want to add a block in header which will not be cached. The block needs to be added to default.xml. I can't set cacheble="false"to the block as it will make all pages non-cacheble ( ...
Aniruddha Ray's user avatar
0 votes
0 answers
30 views

magento 2.4 Cache RedirectDataCacheSerializer InvalidArgumentException: Couldn't retrieve data from cache

After upgrading to MAG 2.4.6-p3 I am getting a cache error. Would anyone have any suggestions? Here is my log, I think its being generated when someone tries to order. I figure it must be a store ID ...
Qkits Electronics's user avatar
0 votes
3 answers
60 views

Magento2: How we can add cacheable block on cart page using block_html cache type?

I want to add a cacheable block on the cart page. The cacheable block should be cached using the block_html cache type.
Deepak MageDivine's user avatar
0 votes
1 answer
23 views

"Best practice" editing CSS while in development to avoid cache rebuild time

I'm building my first Magento site after spending the last few years developing sites with other eCommerce engines - wow, Magento does everything differently huh?! Not really best practice but how do ...
CResults's user avatar
  • 105
0 votes
0 answers
22 views

How to use cacheIdentity in dynamic block graphql in Magento 2

I want to use cache in dynamic block graphql with cacheIdentity. I have added this into the graphql where I am getting the dynamic blocks data in the graphql response. But how can I check weather the ...
Vinod Kumar's user avatar
  • 2,055
0 votes
2 answers
152 views

Not able to access Customer Session via custom module in Magento 2

I'm not able to access the customer session in my custom module. However, when I'm navigating my custom action to salesrep/index/account I'm able to get the customer session. But when I'm navigating ...
Bojjaiah's user avatar
  • 4,002
1 vote
0 answers
80 views

Magento 2.4 How to implement BfCache

I want to implement BFCache into Magento but did not find the proper resources for implementing it using a custom module. BFCache Reference link : https://web.dev/articles/bfcache Can anyone guide me ...
Msquare's user avatar
  • 9,073
1 vote
2 answers
126 views

Prevent phtml template from FPC/Varnish cache - Magento2.4

We created a custom phtml template with some customer specific php, that must be loaded for each customer/pageload again. So we created the phtml template and added the following code to layout/...
JGeer's user avatar
  • 1,418
0 votes
0 answers
70 views

Magento 2 prevent clearing cache on product save in Admin

When I edit product or products in admin, after save, Magento clear cache. Now, When I decide to change 1 product this is ok, but when I want to made changes on 100 product, this is quite annoying.... ...
Petka's user avatar
  • 1
0 votes
0 answers
44 views

Magento 2 / Clear cache from another server

We have the project on 2 servers. Is there a way to programmatically clear cache for both servers? I tried apply clear cache on 2 servers with this method but it does not work And change event with ...
Diego Castro's user avatar
0 votes
1 answer
28 views

Customizing product listings cache in Magento 2 based on cookie value for unlogged customers

I would like to customize the product listings cache for unlogged customers in Magento 2 so that the order of products is sorted based on a value stored in a cookie. Currently, Magento uses a single ...
Estern's user avatar
  • 1
0 votes
1 answer
160 views

Magento 2 - Minify CSS and JS in pub/static folder not updating in browser

I have activated the minify and merged option for the CSS and JS files for better site performance, but recently I have had problems, after deploying and cleaning cache in both varnish and the ...
Diego Castro's user avatar
0 votes
0 answers
39 views

Magento2 Full Page Cache Automatically Invalidated

I have running magento243 version and it is working fine . But I am facing issue in cache flush. My admin cache is automatically cleared after every 30 minutes. I am using cron scheduler extension and ...
Sanjay Shiyal's user avatar
0 votes
1 answer
469 views

Redis cache very slow on Magento 2.4.6

I had a considerable increase in cache growth quickly and my Redis cache slowed down. Adobe recommended to enabled L2 cache. What's it and how to enable it?
Rafael Corrêa Gomes's user avatar
0 votes
0 answers
115 views

"LOADING Redis is loading the dataset in memory" error after installing redis on magento2.4.3

Redis is giving this error sometimes "LOADING Redis is loading the dataset in memory" and the website is not working, Does anybody have any solution for this
hamza abbasi's user avatar
2 votes
1 answer
114 views

100% CPU usage after deployments

After deploying change to magento cloud (2.4.3p3) our servers are hitting 100% CPU, which makes the whole system unresponsive and inaccessible. It seems to last random amount of time can be more than ...
james4563's user avatar
0 votes
0 answers
23 views

Onetime checkout success page occasionally returns 404 - have to flush cache

Once every three weeks or so, our checkout success page (.../checkout/onepage/success/) starts returning a 404. When we notice that has happenned, we have to flush the cache for it to be back online. ...
Ricardo Rempel's user avatar
0 votes
0 answers
17 views

Dynamic banners not loading after cache clear

Can some one please help me here. I cleared the Product images cache as many images were incorrect. I'm unable to recall the cache. The main dynamic banners on the homepage are not loading. I ran the ...
Sushma Varadaraj's user avatar
0 votes
1 answer
42 views

Overide cache clean method in custom cache - Magento 1.9

This is more a "Is it possible to do it" instead of "How to do it" type of question. I have a custom module where I use the Magento 1.9 cache system to store the path of certain ...
Matheus Delazeri's user avatar
0 votes
1 answer
166 views

Display customer group ID on page with all caches enabled

What's the best way to display the current customer's group id on the page when all caches are enabled including full-page cache. I did think of potentially using JS and KO but it didn't look like the ...
Goose84's user avatar
  • 2,611
0 votes
1 answer
75 views

Prevent XML file in media directory to be cached

We are generating a custom XML and stored in the media directory to be accessed by URL. La full URL of the XML have this structure: https://[maindomain.com]/media/googleshopping/googleshopping4-1.xml ...
Eliacim DAVILA - CENSERE's user avatar
0 votes
2 answers
112 views

Cache gets deleted every night when cron jobs are being executed

In my Magento 2.3.4 store the cache gets deleted every night at around 1. I figured that when I disable the calling of the cron.sh script, it does not happen. Is there a way to figure out why this is ...
user4095519's user avatar
0 votes
1 answer
634 views

magento 2.4 page cached after customer login

I have a simple text message that should change after customer logs in. So: when the customer lands on the page, he sees the text "please login" the customer clicks on "Please login&...
Lou Nik's user avatar
  • 443
0 votes
0 answers
8 views

Custom option swatch stuck

I use custom option images to select a text font. Sometimes when I visite the productpage it is suddenly not possible to select another option. For some weird reason the custom option is stuck. ...
Bram Sluiter's user avatar
0 votes
0 answers
67 views

Placeholder image showing on the front end. Magento 1.9 - Happy to pay to be fixed

I have had a Magento 1.9.1 site since 2015. All has worked fine. I moved hosting companies and now a year later when I have gone to upload more products the images do not appear on the front end. All ...
Ben's user avatar
  • 1
0 votes
1 answer
160 views

Magento Store Redirect Geo IP Address

Acutually I am redirecting the customers to the Specifc Store based on their geo IP Addresses. I applied Plugin and Observer also but the same result. Everthing is fine working, But it cachees I have ...
Rana Zain's user avatar
  • 662
0 votes
1 answer
347 views

How to store value to cache and update it once a day

I have got some data from an API, i like to store those data to cache and update it once a day. I mean i don't like to call the API for each frontend page load. I found this function if (!...
tarek fellah's user avatar
0 votes
1 answer
541 views

How to know that I'm using GraphQL cache properly?

I just applied the GraphQL cache in my PWA Studio custom queries. I'm not sure if the cache is working, should the x-cache-hits be enough to validate? How does it work behind the scenes?
Rafael Corrêa Gomes's user avatar
0 votes
1 answer
527 views

Magento 2.4.3: set product image URL from image server

I have a magento 2 website, configuration is as below: - ngnix - php7.4 - mariadb 10.4 - elasticsearch 7.10 - varnish 7.0 - rabbitmq 3.9 OBJECTIVE - I am looking to use products images from my other ...
Amit Dwivedi's user avatar
  • 1,550
1 vote
2 answers
472 views

Magento media cache url

When images are uploaded, they are resized and put into diffent cache folders. "pub/media/catalog/product/cache/1cd59219f95f9c415e6b76e445689a097/J/K/JK791735.jpg" ect.. Where in Magento is ...
AP87's user avatar
  • 197
0 votes
1 answer
100 views

Magento 2.4.5-p1 cache issue

I'm using EaDesgin custom module to print the PDF invoice since I used Magento 2.4.2. After we did upgrade to Magento 2.4.5-p1, we faced an issue when we try to edit the pdf template from the template ...
mido's user avatar
  • 69
1 vote
1 answer
93 views

Deleted Products Still Showing in Search Bar

We recently had to let our webdeveloper go and dont have a new hire yet. We are experiencing an issue with deleted products continuing to show up in our search bar. We've cleared caches and ensured ...
Cohn94's user avatar
  • 11
0 votes
1 answer
362 views

Magento 2.4 Error flushing Varnish server. Host: "127.0.0.1". PURGE response code: 501 message: Not Implemented

We are using Magento 2.4.5-p1 and PHP 8.1 versions. When we are running upgrade commands getting an issue of - Error flushing Varnish server. Host: "127.0.0.1". PURGE response code: 501 ...
sumeet bajaj's user avatar
  • 1,296
0 votes
1 answer
200 views

Varnish enabled or not?

Hi dears I installed varnish cache on centos 7 , nginx 1.20.1 and magento 2.4.5 -p1. After that I don't seeing any header about varnish on my browser. Another thing when I clear cache I have log in ...
Peren's user avatar
  • 27
1 vote
2 answers
401 views

Magento 2 increase Page Cache Storage Automatically

I have a problem with the cache on Magento 2.3.x According to my hosting provider services, the script of Magento 2.3.x is bigger and bigger size day by day. For example, last week the size of all ...
Talha Tariq's user avatar
0 votes
1 answer
584 views

Magento 2 : Disable Caching for the Block or cacheable false

I have tried to get update value without caching block. I have tried all below code,but they are not work. public function getCacheLifetime() { return null; } $this->addData([ '...
Jigs Parmar's user avatar
  • 2,438
2 votes
1 answer
1k views

db_schema.xml setup:db-declaration:generate-whitelist: Constraints/index changes are not applied/refreshed - (Is there cached db_schema.xml?)

Magento 2.3 Question Is there any place where db_schema.xml for your module is cached/restored from? Issue I need to refresh/get the recently changed db_schema.xml changes to apply, which is not ...
CvRChameleon's user avatar
1 vote
0 answers
175 views

Product Image not showing on listing page frontend after code migration Magento 2.4.3

I moved my project to a different directory as the memory is low in the disk, everything is working fine except the product listing page where the images are missing. Showing default image. Wrong ...
fernandus's user avatar
  • 484
1 vote
1 answer
311 views

What is alternative of cacheable="false"

I am developing a module i which i override the Magento\Catalog\Block\Product\ProductList\Toolbar.php by preferece and list.phtml by catalog_category_view.xml layout. Correct product listing data is ...
Divya Rawat's user avatar
2 votes
1 answer
328 views

magento_root_folder/var/tmp/_cache low disk space

I’ve found that _cache directory is consuming 17GB of space which is under magento_root_folder/var/tmp/ directory. I removed it, but after 2 days, I’ve again received an alert regarding low disk space ...
tuabm's user avatar
  • 21
1 vote
2 answers
299 views

Magento 2: Changes not reflected in PWA Venia theme

I have tried to updating the content on footer component but my changes is not reflected on frontend. Any idea about how to clear the cache in PWA studio after updating the content in component? ...
Dhaval Vaghela's user avatar
1 vote
1 answer
1k views

Magento 2.4.3 media/catalog/product/cache growing very hard - each file with many different formats

my media/catalog/product/cache directory is growing very hard. Digging a bit deeper I see that every picture gets around 30 different files in my cache directory. In the picture you see the original ...
Ronny's user avatar
  • 433
0 votes
1 answer
24 views

How to change an image used in template for magento 2.2.6

My template includes a background image on the front page that's unnecessarily huge. I've created a resized, tinyfied version of the same image but I can't figure out how to change it. Can anyone help?...
Bella's user avatar
  • 51
0 votes
1 answer
35 views

Regenerate Magento Cache by Type

I need to regenerate Magento cache programmatically either by type or whole. After cache flush, I don't want to wait for the requests to come and generate the cache passively. This is needed to avoid ...
Satish Gadhave's user avatar
1 vote
0 answers
203 views

Magento 2 message manager not working on product page

I have an issue where add to cart error is not appearing on the product page because the whole page was cached. once i disabled the cache then the validation is working fine. i also tried to edit ...
Mage Kid's user avatar

1
2 3 4 5
24