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
16 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 ...
  • 434
1 vote
1 answer
45 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 ...
1 vote
0 answers
10 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 ...
  • 11
0 votes
0 answers
28 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? ...
  • 1,022
0 votes
1 answer
35 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 ...
  • 413
0 votes
0 answers
11 views

Catalog Images Missing "whitespace" after Flushing Catalog Images Cache

After test upgrade to Magento 2.4.4 on php8.1 (Porto Theme), I cleared the image cache but the image regeneration did not resize correctly or include any white space so all catalog images are now ...
0 votes
1 answer
11 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?...
  • 1
0 votes
1 answer
27 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 ...
1 vote
0 answers
70 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 ...
0 votes
1 answer
44 views

How to remove product_list block from cache in Magento 2?

I need to remove the product_list block from cache Class: Magento\Catalog\Block\Product\ListProduct Block: /var/www/html/vendor/magento/module-catalog/view/frontend/templates/product/list.phtml I have ...
  • 1,175
0 votes
1 answer
22 views

Whats is major impact when implements redis cache and varnish cache on Magento 2?

I am finding out some of below question regrading cache. What is radis cache and varnish cache? Why we need to implement in Magento 2? What major impact we are show in Magento 2 website? Thank you.
0 votes
0 answers
6 views

Managing Cache prefixes and database numbers in multi vm environment

I am hosting Magento through Google Cloud and have each store including the admin running on its own VM behind a load balancer. My concern was I was running into issues during di:compile. When I ...
  • 21
0 votes
0 answers
98 views

custom context is not working with page caching

I am trying to create a custom context variable in my custom module so created following file etc/frontend/di.xml <type name="Magento\Framework\App\Http\Context"> <plugin name=...
  • 2,393
0 votes
0 answers
48 views

Magento 1.9 add to cart slow when cached

We have been experiencing an odd issue on some of our sites since moving from Magento 1.7 to 1.9. When a sites cache hasn't been cleared for a while add to cart is extremely slow. This also affect the ...
0 votes
0 answers
11 views

Magento 2 :: Fetches the value of PageId and PageIdentifier from cache

I'm trying to get the Page ID and Page Identifier in the footer.phtml template file using the below methods but getting the values from the page cache on the storefront. Using ObjectManager Method: $...
1 vote
3 answers
203 views

Is there any way to disable cache for frontend price block

Is there any way for disabling price caching in magento frontend
  • 23
1 vote
0 answers
93 views

Load specific scope configuration data in Multi site

I have three websites in the single Magento 2.4.2 application. When I load any one of the website it will load all the websites configurations data in the configuration cache. I'm looking for a way to ...
  • 9,619
0 votes
0 answers
39 views

Low Redis Hit Rate? (20%)

I just checked hit rate of Redis via (https://gist.github.com/kabel/10023961). The hit rate is around %20.x - is this normal? The machine has a ton of RAM and CPU available. Redis is locally ...
0 votes
1 answer
141 views

Is "page_cache" the same thing as full page cache in app/etc/env.php?

I was reading this article where the author shows how to configure both varnish and redis for Magento 2. In the first portion, he configured Varnish. In the second section, he ends up using this ...
0 votes
1 answer
36 views

Site not using the var/view_preprocessed cache

I have two Magento 2 sites, both which have an identical module. On site 1, if I update the .phtml template file of the module, I have to go to developer mode and back to production mode to see the ...
  • 325
1 vote
0 answers
10 views

cache for customer

I am having a strange problem. When some customers login the cache loads with error (the page is lopped and images don't load). But for other clients after logging in the loading is normal. Is the ...
0 votes
0 answers
12 views

From where magento2 fetches result when we select any option from 'sort by' dropdown on product listing page?

From where magento2 fetches result when we select any option from 'sort by' dropdown on product listing page? Does Magento reassign order for the items instantly or it displays result from cached/...
3 votes
1 answer
72 views

Customer Telephone is required, even it is not configured in that store, works after cache clear, for some time

Since several days (we did not make any code changes, besides the recent the CVE-2022-24086 patches), customers in a certain store of multi-website store cannot order, because Magento requires the ...
  • 14k
0 votes
1 answer
209 views

Magento2 How to restart varnish with magento cache clean / flush

I have setup varnish and varnish is working okay with service varnish restart command but i want to restart varnish with php bin/magento cache:flush command. Does anyone suggest me how i can do this .
0 votes
2 answers
40 views

cache problem iusse by adding dynamic product detail tab

I developed module to adding dynamic product tab in product detail page shown in pic below. but one issue arrive when we add new tab from admin-side then it doesn't at frontend of product detail page ...
1 vote
1 answer
108 views

How to setup different Varnish cache blocks based on request?

I have a redirect in my store that shows a different store view based on the client's location. It reads the header via Fastly and redirects the customer to a different store view using every time the ...
0 votes
0 answers
71 views

"cacheable = false" not working on a modal

I'm developing a modal that allows the user to select a car model, and, when it is selected, it loads the different variations of rims that the user can fit in their car. It is working as intended so ...
1 vote
0 answers
246 views

Magento Graphql Cache issue

I have an issue with Magento graphql cache. Magento PWA setup is on Magento cloud. Default graphql query cache is not working with fastly. Any suggestion?
0 votes
1 answer
318 views

How magento 2.4 clean varnish

According to magento Devdocs for Varnish cleaning If you have configure in env.php the --http-cache-hosts parameter magento can clean Varnish cache from admin like it clean its internal caches. This ...
  • 972
0 votes
0 answers
22 views

Prices sometimes displayed in wrong format when price rule applied

A client complained that discounted product prices were appearing in the front end of a Magento 2.3.6 store in this format: The expected look is like this: Whilst no cache or indexing issues are ...
  • 325
0 votes
1 answer
57 views

Was Magento 2 caching disabled?

Recently, I worked a long time to find the problem cause running the website was too slow. Because of disabled the Magento 2 cache. But I am not disabled manually or by command. I updated the ...
  • 3,950
0 votes
0 answers
43 views

Magento 2.4.1 controller cache control

It seems that on my Magento 2 instance the controller methods are somehow cached because I am doing changes, compiling the code, but they are not visible when they are called. I even added a die() ...
  • 15
0 votes
2 answers
79 views

Updated CSS in pub/static doesn't reflect in browser!

Recently I got an odd issue regarding the CSS changing. Here is the problem: I change the CSS in the theme folder, delete the file in the pub/static. I do static content deploy via SSH and cache flush ...
0 votes
1 answer
96 views

Currency switcher shows different currency in random pages - Caching related issue

I am running magento 2.4.3 and I am having as default currency EUR in my website and as allowed currencies, EUR and USD only. Visiting the site homepage, EUR shows to be the default currency but when ...
0 votes
2 answers
43 views

Latest data doesn't show at front end after addding data in my custom module

Latest data does not show at front-end after submitting form in my custom module. when I clear cache then latest data show at front end. Help me! how to fix that problem. when I disable cache my ...
0 votes
1 answer
246 views

How to resolve Varnish Server Caching Issue in Magento 2?

in my setup, I need to clear varnish caching at the server at all time even I make small changes then also need to clear the varnish cache at the server side so can anyone help me with this?
0 votes
1 answer
440 views

Magento 2: clear config cache after save config value

Please see this code first public function setRefreshToken($token, $store = null) { $scope = 'default'; $scopeId = 0; if ($store !== null) { $scope = 'stores'; ...
0 votes
1 answer
92 views

Cacheable blocks independent of query params

Hello #realmagento folks, How to make page blocks cacheable based on the store-id & request-URI (irrelevant of query params though) in Magento 2? /some-page -> blocks are cached /some-page?abc=...
  • 4,642
0 votes
1 answer
460 views

Magento 2: How to check the localStorage.getItem('mage-cache-storage') value is empty?

How to check if the localStorage.getItem('mage-cache-storage') is empty in Magento 2? It is returning {}. Please guide. Thanks!
  • 3,466
0 votes
1 answer
353 views

Redis cache getting full

I'm running into a problem of Redis cache getting full, then when the client tries to Flush Cache through Magento Admin, it returns an error and signs out. It's necessary to always clean it through ...
1 vote
1 answer
184 views

Magento 2 and Cloudfront as Full Page Cache

I am using Magento 2.3.6 and I am currently in the research phase to use something interchangeably with Varnish as a Full Page Cache. Due to the fact that we use the AWS architecture, we are ...
0 votes
0 answers
22 views

Some category images not loading Magento 2

I am having a strange issue where SOME of the category images are not loading but others are. It happened after I indexed the site and the indexer failed. However, I have managed to successfully ...
0 votes
0 answers
69 views

Magento 2 : Image cache issue when update bulk product programmatically

In my case, I have to update product images and other data programmatically from API in Magento. All data is updated after the indexer command but for new images, I have to flush the product image ...
  • 1,038
0 votes
1 answer
56 views

Magento 2.3.4 images 404 after caching. Reappear after flush catalog images

I have migrated from Magento 1. The migration seemed to go fine. Orders and products are in. I have not installed any themes as I wanted to get it running on Luna before changing anything. So the ...
0 votes
1 answer
145 views

Full page cache is not working for HTML

Magento 2 is configured to use redis for full page caching, caching is working normally for images, as shown in the below response header: Cache-Control: public But it is not working for html pages: ...
  • 101
0 votes
1 answer
346 views

Magento 2 Redis L2 cache preload suffix :hash or :version

Reading the Magento 2 documentation is a little bit confusing. Should I use the suffix :hash or :version? If you visit https://devdocs.magento.com/guides/v2.4/config-guide/redis/redis-pg-cache.html#...
0 votes
0 answers
26 views

Cache types are Invalidate while product saving in admin

main.DEBUG: cache_invalidate: {"method":"GET","url":"http:/","invalidateInfo":{"tags":["cat_p_6","cat_p_9","...
0 votes
0 answers
27 views

How can i list of all custom cache tags?

I have been using the afterGetIdentities for products to set my custom cache tag. i.e - related to a specific DateTime condition. for example, i am adding this cache tag ...
0 votes
1 answer
192 views

Magento 2.3.2 - Problems with merged CSS/JS file cache on production

We experience an issue almost every single time we deploy new code to the website, whereby we get 404 errors for merged CSS/JS files. To me, this seems like there is something pointing to the location ...
  • 101
0 votes
0 answers
20 views

Is it possible to add any additional info to product cache tags?

I would like to add additional information on product cache tags.For example, i would like to set a date/year as below i.e $tags[] = Product::CACHE_TAG . '_' . $this->getProductId() . '_' .'...

1
2 3 4 5
24