Questions tagged [cache]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
1k views

magento 2 - Access denied for user - cache problem

1 exception(s): Exception #0 (Exception): Warning: mysqli_connect(): (HY000/1045): Access denied for user 'aromacak_db30'@'localhost' (using password: YES) in /home/aromacakes/test.aromacakes.online/...
9
votes
2answers
19k views

Magento2 Correct Sequence to flush all Caches/Static files

I'm having a hard time in development with generated classes, pre-processed files and caches in Magento2. In comparisson with Magento1 it seems no longer possible to efficiently develop when ...
1
vote
2answers
1k 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 ...
3
votes
4answers
3k views

CSS file not updating

I have a jay.css file in directory /public_html/skin/frontend/neighborhood/default/css but Magento is not recognizing the file changes. I have cloudflare and cleared the cache but it still doesn't ...
0
votes
2answers
19 views

.phtml file changes won't show, even though my static files and cache are cleared

So this is driving me a little nuts, I'm working on a child theme of Luma and the design requires me to modify some of the catalog blocks, so I've copied over a .phtml file into my theme folder. The ...
0
votes
2answers
81 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 ...
1
vote
1answer
1k views

Magento 2: Not Able to Login As A Customer

When I'm trying to do is Login As Customer, it gives the below error: a:4:{i:0;s:84:"Invalid method Magento\Framework\Session\Generic\Interceptor::isLoggedIn(Array ( ) )";i:1;s:11155:"#0 D:\wamp\www\...
0
votes
0answers
12 views

1 exception(s): Exception #0 (Magento\Framework\Exception\ValidatorException): Invalid template file:

Magento 2.3.4 Noticed some of my menu options are not working and in Cache Management I am now faced with a white screen and lots of errors. I tried to paste the whole thing but this site thinks it is ...
1
vote
3answers
2k views

Magento 2 (Ubuntu) - Thumbnail image caching fails

I'm using Magento 2.1.0 with a bought with a template (SM Sawyer) on Ubuntu 16.04.1 Our products are being inserted/controlled by an external registration system. After this external source adds ...
0
votes
2answers
3k views

Get product image cache path sql

I need to get product image path with raw sql. Where does Magento store product image cache path? Table catalog_product_entity_media_gallery stores images but without the cache path (/2/0/20.jpg).
0
votes
2answers
27 views

Disabling cache for a certain block used in the product page

I would like to load a certain message based on a certain hour range on the product page. In the catalog_product_view.xml I have this block: <block class="Vendor\Products\Block\Usp" name=&...
0
votes
1answer
22 views

What kind of caches are cleared automatically after product edit in Magento 2?

After reading some comments on the ticket magento2/issues/25670 what I can understand is Magento 2 creates/stores a tag for each entity which is modified. For example if a product is modified it's tag ...
0
votes
1answer
13 views

How to modify product data on observer pre cache?

My problem would be the following: I need to modify the product data on load after the product page was cached. Everytime I load a product I need to request some data to an api and overwrite certain ...
24
votes
15answers
61k views

There are no commands defined in the "cache" namespace

Update Everything is working now but There are no commands defined in the "cache" namespace is still there. I tried chmod 777 -R var/generation, didn't fix a thing. AFAIK no module is enabled ...
0
votes
1answer
13 views

How to not cache configurable product options block?

On the product display page for a configurable product, what block (via the layout .xml files) do I need to mark as cacheable="false" so that the dropdowns of options (e.g. size / colour) do ...
1
vote
1answer
1k 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 [...
1
vote
1answer
1k views

Connection to Redis failed - Magento 1.9

I am getting this error while browsing to both front and backend of my Magento store : Connection to Redis failed after 2 failures.Last Error : (111) Connection refused Trace: public_html/lib/...
1
vote
2answers
4k views

Magento 2: Set Cache life time to block

I am creating an extension for displaying labels in product page and listing page. Everything works fine except the cache issue. If I set the status to inactive, then the labels will display in the ...
0
votes
1answer
29 views

The whole website is out of whack after deleting Cache from within the Magento Admin Panel

Magento 2.4.2-p1 Porto theme We have: Installed fresh Magento 2.4.2-p1 used the Magento Migration Tool to migrate from Magento 1.9.4 installed the Magento Porto theme Amasty installed a bunch of ...
0
votes
1answer
20 views

My Magento site become unhealthy for at least 5 minutes on cache flush (Blocks HTML output)

on every cache flush either from cli or using System --> Cache Management -- Flush Magento Cache my frontend is down for at least 5 minutes. I cleared cache manually by clearing 1 cache at a time ...
4
votes
2answers
1k views

Problems flushing Magento Redis Cache on an installation with a separate backend server

My problem is that I do not think I am able to refresh the magento redis cache from the admin page. I realize that the problem could come from many sources, but my gut tells me it has something to do ...
1
vote
2answers
3k views

Disable magento image cache

Is it possible to disable Magento 2 image cache (it's consuming 41G), I want to use S3 for images since I expect our images to go over 2TB in few months, I am afraid generating cache on S3 may take ...
4
votes
2answers
2k views

Magento show wrong image when products doesn't have one

I have a problem with products with no image. I have set the Product Image Placeholders in the backend at System > Configurations > Catalog > Product Image Placeholders It works well with the ...
0
votes
1answer
333 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 ...
2
votes
0answers
208 views

Strange (browser) caching issue in cart

We had a third party build our initial website and I am in the process of 'fixing' things that were not done as well as we might have liked. One such issue was the manner they used to handle pages ...
0
votes
1answer
30 views

Is there any way to flush cache (periodically) using Magento 2 cron?

I need to flush some types of cache (or maybe all of them) by Magento cron tasks (not system native), also I might need it to be done periodically, is there any way to do this?
0
votes
2answers
1k views

Magento 2 Mini Cart values with Full Page Cache

Running Magento 2.1.10 CE, with multiple stores. We have all the cache enabled, with Full Page Cache running with Varnish. Having an issue with the minicart values since enabling cache Steps: 1- ...
6
votes
2answers
4k views

Built-in Cache vs. Varnish Cache for Full Page Cache - Magento2

What is the difference between the Built-in Cache and Varnish Cache for Full Page Cache? What options do I have to choose? Why does Magento recommend Varnish?
0
votes
1answer
14 views

Product Catalog Images URL construction

I have a rather strange issue on Magento 2 (2.3.3) where product images are not loading. Grid and List view show an error 500 for (some) product images, which seem to have additional slugs versus what ...
0
votes
1answer
26 views

magento cli not working for any command and gives a long error

i have magento 2.2.3 . for deleting cache or enabling modules or any other usage of magento cli i take one error . it begins with this phrase Unknown package has no name defined and it is continuing ...
0
votes
1answer
22 views

Magento 2.4 Error flushing Varnish server. Host: "127.0.0.1". PURGE response code: 405 message: Not Allowed after running upgrade command

I enabled varnish cache from admin(magento 2.4), then I ran this command bin/magento setup:config:set --http-cache-hosts=127.0.0.1 Now I can't run the upgrade script. I'm getting this error: Error ...
0
votes
2answers
967 views

Don't know how to re-build javascript file

Problem I'm currently seeing all of my javascript bundled into a single file, and then served from this file: $MAGENTO_ROOT/media/js/276342d53ebc2b88700c238821ff7e8d-v2.18.js I see this as a GOOD ...
1
vote
2answers
455 views

Too many redirects in Magento 2.3.3

I am trying to migrate a magento version 2.3.3 site / system from one server to another. After doing everything I should do to complete the migration I am getting 302 as a server response once after ...
0
votes
1answer
978 views

shopping cart is empty while magento cache is enabled

Magento 1.9 shows 'shopping cart is empty' when i add product to cart while default cache enabled. when i turn off the cache, cart is working fine. my session and cookie settings seems to be fine ...
0
votes
2answers
2k views

Why flush cache is not working?

My issue is I have two duplicate websites one for dev purpose and one is my live site. When I change for example the theme color and flush the cache, working perfectly, color is changing. But when I ...
1
vote
2answers
127 views

How to get rid of browser caching issue of javascript file in magento 2

After our magento 2 site is live whenever we are doing changes in JS file it doesn't reflect in customer browser as a result some of the pages breaks for those customer who doesn't flush his browser ...
0
votes
0answers
17 views

Magento 2 Target Rule constantly invalidating in EE

I am using Magento EE - 2.3.1 version with Varnish and my debug.log file is full with the below log report.DEBUG: cache_invalidate: {"method":"GET","url":"<...
0
votes
2answers
1k views

Magento 2 - Missing enable / disable cache options in Admin

In Magento 2,I can't enable/disable cache In System -> Cache Management, the two options are missing from the dropdown menu. what did wrong? It's in Default mode. Anyone has idea on this?
0
votes
1answer
17 views

New Magento 2.4.1 installation with assets only appearing on first page load, when not created yet in static folder

Thanks for any help. The standard theme looks fine with this new installation (Windows / Nginx) on the first page load only. I can reliably duplicate the issue by clearing the pub/static folder, where ...
0
votes
1answer
23 views

in uat js changes are done but in browser it is not reflecting

i tried cntrl + shit + R below commands i ran sudo rm -rf var/ generated/ pub/static/frontend pub/static/adminhtml pub/static/deployed_version.txt php bin/magento setup:upgrade sudo php bin/...
0
votes
2answers
16 views

magento 2.3.5 image cache being auto generated

Images inside cache folder are being auto generated I've truncate 3 specific folder that I know we don't need it after while checking again it has generated all over again when there hasn't been image ...
2
votes
2answers
4k views

Set block cache lifetime for block in layout xml

Magento 2.1.1. I have added custom sorting of products in catalog pages, by random order and I want my block to be dynamicall, so with every change of sorting for random the collection should be ...
0
votes
1answer
25 views

Magento 2 How to create cache for a collection inside controller

Hi am having a controller Search.php every time I do operation it loads all the collection and takes much time to load. So I wanted to cache the custom collection and optimize the loading time. this ...
0
votes
1answer
1k 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 ...
1
vote
1answer
260 views

Magento 2.4.2-p1 - Redis cache full

Just upgraded my DEV server to Magento 2.4.2-p1. I am very confused about why its using HUGE amounts of RAM when reindexing Catalog Search. You can see on this screenshot it's filled 115GB of RAM. ...
1
vote
1answer
1k views

Enable cache for AJAX block

I'm having problems with cacheing a block in Magento 2. The theme I'm using is getting content for the block via an AJAX call. Is it possible and if so, how to cache such a block in M2? Thank you, ...
7
votes
5answers
3k views

Magento 2 EE : Need to remove one single block from cache

I just need to remove single block phtml from FPC cache. How can I do that without using cacheable = "false". Because cacheable = "false" has an effect on the whole page. I am using a .phtml file in ...
0
votes
1answer
998 views

how to store custom collection in cache in admin grid?

My collection model is testimonial/record. In database table(testimonial_record) 2,00,000 records so it loads more how to decrease time to fetch collection data in grid.So I think I have to store ...
2
votes
1answer
1k 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
30 views

What values need to be passed in (Version $subject) arguments in clearing the cache programmatically

I am bit confused, I am using the below method to clear the cache in Magento 2 programmatically, this method has an argument, and what value I need to pass in it? method: **public function flushCache(...

1
2 3 4 5
23