Questions tagged [cache]

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

Filter by
Sorted by
Tagged with
2
votes
1answer
22 views

Magento 2 : Get invalidated cache types

I am creating a module that clears invalidated cache, I am trying to get invalidated cache types in controller, so i can clear cache for only cache types which are invalidated. How to invalidated ...
0
votes
2answers
26 views

Is there a need in Magento 2.4 for Cache warmer extension or Google Page Speed Optimizer?

Magento ver. 2.4.2 4 x 2.50 GHz Cores 8 GB RAM 5 TB Bandwidth 5000 Mbps Network Out We used to run Magento 1.9.4 but are switching to Magento 2.4.2. Every time I installed Magento 2.x it always ...
1
vote
1answer
29 views

Magento 2 : Cache types (When to clear which cache)

Here i am talking about magento 2 default cache. I am looking for a clean idea, when to clear which cache. For example if change made to layout file, we can simply execute one php bin/magento c:c ...
0
votes
1answer
24 views

500 internal server error after terminal commands

I have an issue with Magento 2 commands. Every time I do : bin/magento setup:upgrade bin/magento setup:di:compile bin/magento cache:flush bin/magento cache:clean rm pub/static, etc... ... I get 500 ...
0
votes
2answers
20 views

Magento2: How to serve cookie-less cached version for crawlers on Varnish cache

As far as i know; magento assign a X-Magento-Vary cookie to each visitor first you visit website. So your first request always be non-cached version. After you got a X-Magento-Vary you see cached ...
0
votes
0answers
13 views

Magento2 - After deletion of product, how to delete /avoid auto generation of placeholder (ghost) pictures?

we deleted products and its associated images from /pub/media/import /pub/media/catalog/product/ Also from /pub/media/catalog/product/cache/ However, the images re-appear, not the original image, but ...
1
vote
0answers
9 views

Magento2: Images are not shown on second website

I've created a second website, with separate store and store view, where i wish to show only some of the products of the main website. I'm having some problem with images, even tho not consistently. ...
0
votes
0answers
8 views

504 Gateway time out error after Cache Flush

After doing the Cache flush I am getting 504 Gateway time out error and after 5 mins the application is starting otherwise I have to restart the server manually I deploy my application in AWS.
1
vote
1answer
42 views

Magento with Varnish - var/cache folder still being used

I have a Magento store configured with Varnish. When everything is up to date site is fast. If I change something in the backend it doesn't get reflected on frontend unless I manually delete var/cache/...
0
votes
0answers
34 views

Magento 2.3.2 - Very weird checkout cache issue

Hoping someone can help here. We have a Magento 2.3.2 website. There's nothing particularly special, functionality wise about it. It uses cloudflare, which could be a cause, but the hosts assure us ...
0
votes
0answers
9 views

Tax required field not working with multi-website 2.4

I have a Multi-Website where I want the tax to be required for one website and optional for another website, Website reloaded first takes the configuration option for both websites. Facing Catch issue....
0
votes
1answer
29 views

Uncache dynamic blocks in cms page using Lesti FPC

I have two blocks that deliver dynamic data, set up in a CMS page. One block is a button that needs to look activated if a DB record is found and says "Download (PDF)" or be grayed out with ...
0
votes
1answer
18 views

Deleted files won't go away

I have a file that's auto generated by my theme. It's called design_storename.css There are a few changes that weren't updating on my site, so I deleted that file, changed another setting and it ...
0
votes
0answers
15 views

How to prevent Host Header Poisoning in Magento 2?

I'm using magento 2.4.1 , i tried to make a GET request, i added ':22345' as suffix in my host header so it will look like this: when I invoke this code in phtml file echo $block->getRequest()->...
0
votes
0answers
11 views

in env.php correct?

I have noticed that when I run bin/magento index:reindex && bin/magento cache:flush my cache folder continues to grow until the server runs out of space (around 350GB). The only thing I have ...
0
votes
0answers
7 views

Configurable product is showing varation for for first time but then variation is not shown

I am facing a weird problem , the configurable product is showing variation Some products are showing variations and some are not they are having same attributes filled up at the backend Kindly guide ...
0
votes
0answers
15 views

Magento product catalog not showing

I am running Magento 2.3.3 and I an issue with product catalog images not showing both on frontend and adminhtml. I have seen that it is a common problem, but I tried all recommended solutions, but ...
0
votes
1answer
31 views

Local site not loading after disabling two factor auth module and clearing cache in magento 2.4.1

I have installed Magento 2.4.1 via composer install, then I tried to log in to the admin it asks for two-factor authentication, I have disabled the two-factor authentication using the command (bin/...
0
votes
0answers
17 views

Should the Cache automatically update after I change a CMS Page?

In my Magento 2 store, I always have to clear page cache after I update a CMS page (FPC is through Varnish). I have been doing this for some time but recently stumbled upon another thread suggesting ...
0
votes
0answers
15 views

Magento 2 with redis site not loading

I have configured the Redis cache as per Magento documentation. But if I run the cache:flush command the site loads lot of time and I'm using AWS RDS, The CPU of the RDS instance is 100% used. I also ...
0
votes
1answer
62 views

Change js file in production mode

I changed this file app/design/frontend/VENDOR/THEME/web/mage/validation.js But changes are not reflected; I'm in production mode I deployed static content with bin/magento setup:static-content:...
0
votes
0answers
15 views

How to clear swatches cache when there is an update from an external source?

I have some changes where swatches should be greyed out for some product depending on its stock in physical stores. I get the stock in physical stores from a webservice (which is ran every 5 mins by a ...
1
vote
1answer
21 views

How to use redis endpoint in magento 2.1

i am unable to add redis endpoint in magento 2.1 below is my code that i added in "etc/env.php" Please let me know what i am missing 'cache' => array( 'frontend' => ...
0
votes
0answers
8 views

How to properly integrate Magento 2 with Cloudflare cache

I just enabled Cloudflare cache with my magento 2.3.4 , the problem is most of the image and js file cache status is always MISS: Is this related to the server configuration or magento 2 .htaccess ? ...
0
votes
1answer
167 views

Magento 2.4 Varnish error 503

I got a copy of my Magento in another server, all checked permissions, vanilla installation, domain, but I don't find the issue, I keep seeing this error message below. Error 503 Backend fetch failed ...
0
votes
0answers
8 views

The slider does not cache the first picture. After uploading, the picture is uploaded again

Found a module on github. https://github.com/braumach/site/tree/7bead239da0d181193f77540dd0c0cda791e88d8/app/code/TemplateMonster/FilmSlider It implements a slider with a constructor in the admin area....
0
votes
1answer
19 views

Disable cache for product prices

I'm using Magento 2.3.5 and I have a requirement where I need to disable caching of product prices (both in catalog view and product view pages). I read the product prices from an external service and ...
1
vote
1answer
99 views

What is expected files size in var/cache/

Some files in var/cache/ folders are as large as 300Mb is this considered as normal or something is wrong with my Magento? (see screenshot) Iam running Magento ver. 2.4.0 with up to 2000 products, ...
0
votes
2answers
87 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
2answers
33 views

Magento 2 : Module is disabled, shows in disabled list, but the functionality in admin remains

I have a module that I disabled that adds background patterns to individual product pages. We want to remove the functionality. So I ran the CLI command to disable the module. I listed the modules in ...
0
votes
1answer
232 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
119 views

Redis HGET is consuming too much of time

One of my client M2 store is using Redis for session and cache storage. On inspecting the New Relic, have noticed that HGET is consuming hell lot of time Redis Configuration: Local Redis connected ...
0
votes
1answer
13 views

several times a day my pages come in written lines, clearing the cache helps, what goes wrong

several times a day my pages come in written lines, clearing the cache helps, what goes wrong magento 2.2.5
0
votes
1answer
36 views

Customer login only working in private browsing

When a customer tries to login to his account, it redirects right back to the login screen. The text on top changes to way "Welcome, ", but the customer can't actually see anything in his ...
0
votes
4answers
82 views

Magento 2: How to make Product image uploader rename the image file if the same filename exists?

I'm using Magento v2.3.4 and Cloudflare to cache CSS, js, and images. The problem is when i tried to upload the product image from the backend using the same filename and extension, the image uploader ...
2
votes
1answer
28 views

How change Magento2 config cache behavior

In my project with 100's of websites in multi-store mode, several seconds on every request are used to unserialize the config cache. It appears that Magento builds and compiles the config-cache from ...
1
vote
1answer
81 views

backend_clean_cache cron never completes

If I run SELECT job_code,scheduled_at,executed_at,finished_at FROM cron_schedule where executed_at is not null and finished_at is null; I can see backend_clean_cache never completes Has anyone had ...
0
votes
1answer
37 views

Magento extremely slow

My server TTFB wait time is 14 seconds , Total loading time is 24.5 seocnds I have attached my waterfall for GT metrix: How can I deal with it ?? I am done with following : I have minified css and JS ...
0
votes
1answer
72 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. ...
0
votes
0answers
27 views

Magento website goes down(loads without css&images) very frequently, but after restarting Redis services, website is up again

I am new to Redis and Magento both, so please ignore any misleading/non-correct terms, I am working on Magento V1.9.2.4 configured Redis V3.0.7 with Mage_Cache_Backend_Redis, we have OS REDHAT 7.x ...
0
votes
0answers
37 views

Magento2: Varnish Test result fail

I'm trying to submit an extension for Magento 2.4 but can't pass the "Varnish Test" stage because of the cache that can't be set up on some pages (simple-product and category): "...
1
vote
1answer
27 views

Get cached product image for preset size

My theme view.xml has: <image id="product_small_image" type="small_image"> <width>135</width> <height>135</height> </image> I have a ...
2
votes
1answer
52 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.
0
votes
0answers
74 views

Magento 2.3.2 Enterprise- Sometimes Custom Mega Menu Not Showing

I have overrided topmenu.phtml into a custom theme to display some custom menus for logged-in user only. But sometime after logged-in, these mega menus are not displaying.once i flush cache OR remove ...
0
votes
1answer
413 views

Magento 2 Gateway timeout how to resolve

I have a website on Magento 2 and when I try to access the website, it's really slow and it can take up to 2 minutes to charge a page. When I try to access the admin, either it's really slow like on ...
4
votes
1answer
323 views

Cache:Flush fails after updating from Magento 2.3.4-p2 to 2.3.5-p2

When deploying the update from Magento 2.3.4-p2 to 2.3.5-p2 the cache:flush command does not work. As error message I get Class Magento\GoogleShoppingAds\Model\Cache\Type does not exist. I checked ...
3
votes
0answers
28 views

Product page images cache generation issue after Magento upgrade

Product page images are showing thumbnails instead of product images. On the same page related products images are showing fine. Only products images are having issues. The image url is accessible but ...
0
votes
0answers
33 views

Magento 2: Refresh a widget at regular interval

I have developed an extension to provide a widget to list featured random products on CMS pages. The requirement is to refresh this list at regular interval without caching. Is there any option to ...
0
votes
1answer
28 views

How can i make a particular block cachable

I have a custom block i want only that block's cache to be cleared I tried 2 methods set cachable = false in layout file for my block (This clears full page cache) in my block I added a method ...
0
votes
2answers
51 views

How to solve Browser Cache Issue?

We are facing some major problems with the browser cache. After we have done the development on our website, the changes are not reflecting to the end user and they need to clear the browser cache at ...

1
2 3 4 5
23