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

Magento 2 : disable cache for static block

In Magento, I can disable cache for static block by add cache_lifetime="null". {{block type="core/template" cache_lifetime="null" title="BEST SELER!!!" sku="ASS030530010" template="catalog/product/...
1
vote
3answers
31 views

Why after deploying static content I'm receiving 404 to merged css?

I'm using Magento 2.3.3, after deploying some category pages are getting the wrong css, returning 404, I tried flushing the cache but it didn't work. How could I solve it?
0
votes
0answers
9 views

ZendDb Adapter Exception

While running cache flush bin/magento cache:flush command the following error is thrown, [Zend_Db_Adapter_Exception] SQLSTATE[HY000] [2002] Connection timed out And [PDOException] ...
2
votes
2answers
37 views

Magento 2.3.3 Varnish Cache invalidating and auto purging every 10 minutes

I have just implemented Varnish 6.0 on our Magento 2.3.3 install, everything seems to be working fine except our Magento cache/varnish cache is being flushed by Magento every 10 minutes. I can see ...
1
vote
4answers
51 views

Magento 2: What is difference between Cache Clean & Cache Refresh? [duplicate]

What is difference between cache refresh (when we select something and click refresh) and Cache clean?
0
votes
1answer
24 views

How to refresh the cache programatically in magento 1 EE

What is the code for clean or refresh the cache programmatically because I have got lots of snippets but all are not working in Magento 1 enterprise edition. Does anyone know how to solve it? Thanks ...
0
votes
0answers
19 views

Clear cache vs Ajax

I need to create Magento 2 extension that will be adding some content (information) to products on category and product page, that information will update depending on the configuration of extension (...
0
votes
0answers
22 views

Magento 2.2.5 error after enabling Memcache

We get the error below after enabling memcache : {"0":"Warning: SessionHandler::read(): Unable to clear session lock record in /public_html/vendor/magento/framework/Session/SaveHandler/Native....
2
votes
1answer
27 views

How to disable Compiled Configuration?

I was trying to disable all my caches, then I noticed that one of my Magento 2 installations has a particular cache type called Compiled Config. I don't want to use my installation compiled, I wan't ...
0
votes
1answer
20 views

How do I get around Magento 2's Template Cache for a dynamic snippit

I am trying to create a shipping time indicator by pulling in the current time and if it falls within our shipping rules, it will display ships today, or ships tomorrow. That being said, I am running ...
1
vote
1answer
19 views

Magento 2 - force customer browsers to re-laod Cache fresh

we have set up a new Magento 2.3.1 page. We are using Lite Mage Cache. We were live, but had to do several changes and to deploy the page new multiple times. Now it seems, that several of our ...
2
votes
3answers
97 views

How embedded CSS in transactional email works?

I have a very frustrating issue with the Magento 2 sales order emails. Through experimentation, I worked out the locations of the many files that are used to comprise these emails. At some point, I ...
0
votes
2answers
53 views

Cache and module status not the same in Admin and shell - Magento 2.3.2

I am new on the Magento 2 platform and working on migrating our shop from Magento 1. I am working on a testmigration and have successfully migrated data and products from M1 to M2 (version 2.3.2). ...
1
vote
0answers
7 views

How to trigger without session access invalidate cart version

On backend action (e.g. saving cart rule) I'd like to invalidate customer/section/load cartVersion to force Magento to recalculate totals on frontend on cart page for those who has that rule applied ...
0
votes
2answers
42 views

Magento 2 - Cache problem for check if user is logged in phtml file

I use this code, on .phtml file, if($customerSession->isLoggedIn()) {} for check if the user is logged. But, when I active the cache, this code does not work fine. How I can resolve this problem?
1
vote
1answer
64 views

Magento2.3.1 IN porto theme product image on detail page not loading

In magneto2.3.1 - I have used porto theme I notice some images not generated cache inside, I apply all commands on my live site, but not getting any error and also I apply image resize command php bin/...
0
votes
1answer
31 views

Magento 2 clear particular block cache

I have a block that displays a product grid with SKUs mention in admin system configuration and I have provided cache lifetime for that block as 3600 sec. It works perfectly fine. Now when admin ...
0
votes
2answers
50 views

Magento 2 - How to check if Redis is working

In magento 2 I recently configure Redis in app/etc/env.php file. But I don't know how to check if the configuration is ok and if Redis is working well with magento. Is there a way to make sure of ...
0
votes
2answers
27 views

Varnish full_page cache can't clear

I've recently set my site up with Varnish full_page cache, and I have one specific URL that seems to be "stuck" and I am not able to clear it from the cache. Last night I went into maintenance mode ...
0
votes
2answers
34 views

how to install varnish cache in magento2 using localhost

How to install the varnish cache in magento2. I need setup the varnish cache in my system localhost. can anyone please guide me.
1
vote
0answers
17 views

Magento 2: Difference between flush catalog images cache and manually deleting files

Is there a difference between using the Flush Catalog Images Cache button in admin and removing the files in pub/media/catalog/product/cache via command line?
3
votes
1answer
26 views

Magento 2 CLI method to flush images cache?

Is there a CLI command (either bin/magento, n98, or custom) in Magento 2 that can flush the images cache to perform the same function as clicking the "Flush Images Cache" button in the web admin panel?...
1
vote
1answer
34 views

Magento 2 - How to conditionally show/hide the minicart block based on the customer permissions

The problem: I'm running into an issue with the page/block caching and the minicart. In the template cart/minicart.phtml we have a permission check to see if the current customer is allowed to add ...
0
votes
0answers
27 views

Speed up image resize after upgrade

We have more than 10000 SKU's and we are upgrading to 2.3.2 So in order to display product images, I need to run catalog:images: resize witch takes 8 hours to complete. Is there a way to speed up ...
0
votes
1answer
31 views

Cache Issue, configuration cache is always showing invalidate in the admin panel

Configuration cache is always showing invalidate in the admin panel, even after I clear the cache, it will invalidate again shortly. I'm not exactly sure which error log files to look for this problem....
0
votes
0answers
21 views

M2.2.4 - Caching Issue Affecting Customers

We are experiencing an issue where our website for whatever reason will run into cache issues, to where the customers will get into situations like trying to go to Checkout, but instead of going to ...
0
votes
2answers
41 views

Installed module not visible in admin - Magento 2.3.2

I've installed a module and while the CLI says that the module is installed, the schema in the db has been created and the module has a record in setup_module it doesn't show up in the admin. When ...
1
vote
1answer
35 views

Magento 2 not able to save or load a custom cache

Here is the script (in a shipping module->carrier method, is the cache function can be used in checkout page?), in my custom module $cacheKey = $code; //e.g ABC /*saving*/ $cacheData = $request->...
0
votes
0answers
19 views

Catalog Images Cache Issue from 2.2.3 to 2.3.2

I`m having an issue with Flush Catalog Images Cache functionality in magento 2.3.2 . I am trying to upgrade from Magento 2.2.3 enterprise (currently) to Magento 2.3.2 enterprise . Some of the steps ...
0
votes
0answers
64 views

AH01070: Error parsing script headers in PHP-FPM when accessing certain product detail pages in development mode

So I am getting after some probably unrelated changes the error [Wed Sep 04 16:00:18.155246 2019] [proxy_fcgi:error] [pid 22240] [client 192.168.0.160:35618] AH01070: Error parsing script headers [...
0
votes
0answers
13 views

create ACL for a single link in magento 2

I have cache tags listed in grid. By selecting that tag i can cleared specific cache from magento or redis. Now i have different group for example Catalog, Marketing etc. each tag is associated with ...
0
votes
0answers
39 views

Unable to clear Magento cache

Got some really strange behaviour with Magento 2.2.8. Seems like the cache (using Magento built in cache) and site environment settings are locked and will not change. I have disabled caching ...
1
vote
0answers
57 views

Magento 2 TypeError: options is undefined in firefox

After working for few day I noticed that I am getting this issue in my Firefox and not in Chrome. TypeError: options is undefined If I do cache clean and check in Firefox it works for the first ...
1
vote
0answers
29 views

Magento 2.3: cache issue - changes are uploading with long delay

We have got installed Magento 2.3 on our production server. Whenever we do changes to css file or other Magento files it takes ages to reflect the page on the live website. The brutal method to get ...
0
votes
0answers
19 views

Problems with Cache Control Magento 2

How I change the cache-control to have the same properties of x-magento-cache-control on response Header? Above my inspect: cache-control: max-age=0, must-revalidate, no-cache, no-store (I Need ...
0
votes
1answer
29 views

What is the difference b/w cacheable=“false” and Sections in Magento 2

I have developed an extension in magento 2.2.6. Now i am upgrade this in magento 2.3.1 but I am facing 1 issue. In my phtml file $block->method() is called 1 time after cache:clean. When I refresh ...
0
votes
0answers
28 views

Magento 2 Image Cache Files are not Updating in Product Catalog

I'm currently experiencing an intermittent issue with my product images in my installation of Magento 2.3.2. Essentially I upload a new image to replace an existing image, the image updates in the ...
0
votes
0answers
13 views

How to clear a specific full_page cache?

I'm now having 2 pages on Magento 2.3.2. - The 1st is to edit, update item data (not product). - The 2nd is to display item follows with ID. The problem is whenever I update the data, the 2nd page ...
0
votes
1answer
86 views

Magento 2 : Index constantly clearing cache of our whole catalog

So I'm having a serious issue with Magento which is ruining performance since 90+% of the time we don't have caches. I'm running Magento 2.3.2 and Varnish and have had several issues with them. ...
0
votes
1answer
56 views

How to clean or flush cache programmatically in Magento 2.3?

I have tried DI and Object Manager way to clean or flush cache but its not working for me using DI public function __construct( Context $context, \Magento\Framework\App\Cache\...
1
vote
3answers
203 views

Magento 2.3.2 wrong image cache path

Magento 2.3.2 upgrade after 2.2.6 having issue on product page. Images aren't appearing on product pages. The path coming is 404 /catalog/product/cache/50dd8aa5084eb9449e88d424223230cd/image/...
0
votes
0answers
17 views

Magento 2 - Website will get in cache loops and redirect to homepage (only at random times)

Our website runs into situations where it is working fine for days, but then customers will occasionally get into a situation where they are say trying to goto checkout, and instead of heading there, ...
0
votes
1answer
33 views

Magento2 : Cache file path displayed in home page

/home/healthba/public_html/var/view_preprocessed/pub/static/vendor/magento/module-theme/view/frontend/templates/page/js/require_js.phtml /home/healthba/public_html/var/view_preprocessed/pub/static/...
0
votes
1answer
11 views

Magento 2: Which pages are cached via FPC?

I'm having issues with cache and I would like to know which pages are natively cached and uncached by Magento 2?
3
votes
0answers
30 views

Detect old cache images in Magento 2

Due to some mistake we ended up in cached thumbnail images for old versions of our images in Magento 2.2.8 shop. How can we detect those images? Is there a build in function for this? We want to ...
0
votes
0answers
16 views

Quote Items are showing only if flush cache - Magento 2

I am trying to get cart quote items by the following code: File: app/code/Essence/Fcf/view/frontend/templates/packages.phtml I called this file in my cms page by following code: {{block class="...
1
vote
2answers
90 views

Magento 2: The style.css inside Magento installation directory is effecting cache

I am very new to Magento. Recently I have to add extra styles to my magento website. So I go to adminpanel -> content-> design->configuration->my theme ->HTML Head I add the following ...
0
votes
1answer
36 views

Varnish: Saving product clears all product pages

When I programmatically update a product, all cached products (varnish) seem to be cleared. This is the header from the purge request: ReqHeader X-Magento-Tags-Pattern: ((^|,)cat_p_3478(,|$))|((...
0
votes
1answer
31 views

Magento 2.2 Random frontend display issues and 500 error reports

We are running a large Magento site (17 store views) with several custom modules installed. Most of the time the sites are stable and performing well, however, we do get some random issues where the ...
1
vote
1answer
49 views

Magento 2.3 cache menu on homepage

I met this case sometimes on Homepage. The menu was cached when I return Homepage from another category page. Does anybody here have idea and solution for that? Thanks