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
1answer
17 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
11 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
15 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
50 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
7 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
13 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 ...
0
votes
1answer
23 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
35 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
23 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
48 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
45 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
22 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
62 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
27 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
0answers
32 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
31 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
0answers
28 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
22 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
26 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
22 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
35 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
45 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
129 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 ...
3
votes
1answer
215 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
17 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
25 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
34 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 ...
0
votes
0answers
23 views

Magento 2 - Generate all cache in a subdomain of the same server

I just changed the url base to retrieve the media resources from the following address: https://subdomain.magento2.com/pub/media/ Images such as the logo and icons of the template work and are seen ...
0
votes
1answer
25 views

Magento 2.3.2 blank page after cache:clean

I ran the command 'php bin/magento cache:clean', after this my website frontend showing a blank page. How can I debug this?
0
votes
0answers
12 views

Magento 2. Is Cached information (FPC for e.g.) removed unless explicitly requested?

Does the FPC content(be it saved in Redis,files or Varnish) ever expire/is removed except from the cases in which an explicit cache clean request is made (via console or GUI)?
0
votes
0answers
16 views

is creating block within template in magento 2 good practice

I often see in phtml templates blocks being creating dynamically like below: $block->getLayout()->createBlock(BlockClass)->toHtml(); I worry whether this is good practice and particularly ...
1
vote
1answer
28 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 ...
2
votes
0answers
41 views

How to cache a product collection in Magento 2?

Currently i load a product collection under certain categories, for example: $collection->addCategoriesFilter(array('in' => array('2','4'))); $collection ->addMinimalPrice() ...
0
votes
2answers
239 views

Magento 2 Varnish issue with images

Last days was trying to investigate why my magento 2.3.5p1 instance needed for uncached pages about 10-11 secs to load, measured with timer. I identified that the issues was Porto's template mega menu ...
1
vote
0answers
27 views

How overwrite product price in plugin but not taking the cached price?

I have a plugin to change the product price, but when the plugin is called again, it's render the cache product price in the frontend. Any way to take the plugin info instead of the cache? This is my ...
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
17 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 ?
0
votes
1answer
52 views

Magento2 :: How can I get current page URL when cache is enabled

I am facing issue to get current page URL when cache is enabled <?php $urlInterface = \Magento\Framework\App\ObjectManager::getInstance()->get('Magento\Framework\UrlInterface'); $...
2
votes
2answers
59 views

Clear custom cache from cache management Magento 1

I have created a custom cache using script. cache is created successfully, i can get it too. Added cache field for custom cache in cache management. How to clear that cache custom cache from cache ...
4
votes
1answer
55 views

How to create & store custom cache in magento 1?

I am trying to create & store custom cache using script in magento 1. Is their any way we can implement it ?
0
votes
1answer
25 views

How to reduce a large Magento 2 installation?

I'm using Magento 2.4 and my installation is using 200GB, I'd like to reduce it. I want to remove old logs, backups, caches, duplicated images and etc. How could I optimize it?
1
vote
1answer
34 views

Issue when clean static files in Magento 2

In my Magento 2 site every time I try to clear the static file cache and try to reload the page in the frontend, several errors come out in the JS console, as if there were continuous conflicts ...
1
vote
2answers
46 views

Any Drawback on running setup:upgrade, di:compile, static deploy everytime code level edit on Magento 2

Is it ok to run the following set of commands by default everytime I make a code level edit (layout edits, module creation, extension update) php bin/magento setup:upgrade php bin/magento setup:di:...
1
vote
1answer
16 views

Magento 2.3.4: How to serve end-users updated static files

We recently upgraded from 2.3.1 to 2.3.4-p2. However we're getting reports from end-users of some core functionality, such as the checkout process, breaking due to their browser serving outdated files ...
2
votes
1answer
38 views

How to clean cloudways Varnish cache after cleaning statics on magento 2 side

I wrote a class that works if I call it through pure php. It looks something like this class CloudwaysAPIClient { const API_URL = "https://api.cloudways.com/api/v1"; ... public ...
0
votes
2answers
131 views

Magento2.3.2: Cache in Header links are not working properly

When I logged out from my website, its successfully getting logout on the current page. But, when I click any other page for example clicks on the logo to get the homepage, it still shows as logged ...
0
votes
1answer
22 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 ...

1
2 3 4 5
23