Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [cache]

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

0
votes
0answers
14 views

Magento 2 Redis keeps asking for same key every 5 seconds

I'm currently running Magento 2.2.3 with redis for cache. My issue is that every time I refresh or try and load a new page Magento always gets to the point where it asks for the same params from redis ...
4
votes
0answers
27 views

Magento 2.3 error after cache flush or clean

Every time I flush or clean Magento cache I get the following error on front and backend: Exception: Notice: Undefined variable: _ENV in /home/jacstoreonline/public_html/magento/vendor/magento/...
1
vote
0answers
55 views

Magento 2.3.1 customer grid sorting issue

I am using magento 2.3.1. I am having this strange issue only in admin>customer grid No matter which column I choose to sort the results are always the same. It happens only in this grid. What I ...
0
votes
0answers
13 views

Magento 2.3: How to rename dangerous redis commands whilst maintaining magento functionality?

Environment OS: Ubuntu 18.04 LTS Server: Apache 2.4 Database: MySQL v14.14 distribution 5.7.25 PHP: 7.2 Redis: 5.0.4 Issue Following the digitalocean tutorial referenced within the magento ...
1
vote
0answers
18 views

What's the difference between flush the cache from admin panel and through command?

I have seen that we can flush the Magento cache via admin panel System> Cache Management and as well as by running the below command php bin/magento cache:flush I would like to know what's the ...
0
votes
1answer
20 views

Magento2: How can I implement varnish cache for magento?

I want to install varnish cache for my Magento site on Centos 6 Apache2. Please share me link and its advantages.
0
votes
0answers
12 views

Magento 1.14.4.1: Not able to clean specific type of cache while using redis cache

I have redis which is hosted separably. I need to clean specific type of cache (i.e. block_html) using a script. The problem is that whenever I update product it doesn't reflect on the front-end side ...
0
votes
0answers
19 views

Magento 2.2.2 GetCacheKeyInfo() Error getId() on Null

Fatal error: Uncaught Error: Call to a member function getId() on null in .../htdocs/vendor/magento/module-backend/Block/Menu.php:233 Stack trace: #0 .../htdocs/generated/code/Magento/Backend/Block/...
0
votes
0answers
14 views

Varnish Cache pages being Invalidated too soon Magento 2

I have setup varnish on my server and have used this with the default vcl provided by Magento 2 on my store. This has about 16,000 main pages (category, product, CMS) and want to store this all in the ...
2
votes
0answers
28 views

Magento2 - Indexing / Full page cache problems

We are having long-term problems with indexer and cache settings. After reading great guide by @johnhughes1984 about caching and indexing we thought that everything will be alright with settings ...
0
votes
0answers
58 views

URL rewrites not working Magento 2.3.0

I am having an issue with URL rewrites in Magento 2.3.0. URL rewrites are of course turned on and most URLs have been rewritten but there are some which have not been. They are included in the ...
3
votes
0answers
46 views

Magento 2 - Cache warmer for multiple server

I have integrated a cache warmer module. Using cronjob it runs and creates cache for all the pages, and it's working properly. I have multiple servers (Let's say 2 servers), until now there is no ...
1
vote
1answer
50 views

Missing add to cart button on some items

We're experiencing a strange issue with our catalog, I'm scratching my head of where to start looking for... Here are the symptoms: Item X - doesn't have the "Add to Cart" Button. When I go to the ...
1
vote
2answers
69 views

Nested cache blocks

I have a parent block that has so many child blocks inside it. The parent block has these cache rules: Header: $this->addData([ 'cache_lifetime' => 86400, 'cache_tags' => ['...
2
votes
0answers
18 views

Magento 1.14.4.0: Programmatically clear cache of individual product

I need to clear the cache for individual product. For example, If admin change any detail/price/qty of product. I need to run script that clear the cache for that particular product only. I am running ...
1
vote
0answers
19 views

Cache problem old images - Magento 1.9

In logs i found this media/catalog/product/cache/1/thumbnail/800x800/9df78eab33525d08d6e5fb8d27136e95 /p/a/_lindt_2132.jpg it's an old image. I checked in: var/cache the cache is deleted and ...
1
vote
0answers
15 views

Magento Cache No such File

I have the following in my logs which appeared after updating the M2EPro Module. fopen(var/cache/mage--9/mage---33f_m2epro_extension_M2ePro_Config_Module_data): failed to open stream: No such ...
2
votes
1answer
56 views

Disable flush image cache button in the backend in magento2

Go to Admin > System > Cache Management I want to disable flush image cache button in backend given Which is highlighted in bellow image for security purpose. Can anyone give me solution. Thanks.
1
vote
1answer
26 views

Cannot enable caching with Docker local environment

I am getting this error In Serialize.php line 33: Unable to unserialize value. However, I do not believe this is the same issue as mentioned in this thread. I am using Docker for M2 local dev ...
0
votes
1answer
24 views

Magento 1 Cache folder is not accessible when using shell command

I'm having a problem with getting a shell command to clear a specific product cache because the permissions in the cache folder are strictly restricted to www-data. For example, folder /var/cache/mage-...
1
vote
1answer
17 views

How to know in magento 2, command to get cache information?

What command would we use to get the cache status that is to know which caches are enabled or disabled in Magento 2?
0
votes
0answers
22 views

Magento 2 Home page cache_invalidate issue

I am working with the Magento2, but recently i am facing the cache_invalidate issue in dubug.log file, but i got the below error message in my home page. also there is no error log in exception.log ...
1
vote
3answers
89 views

Magento2 which command Run and when to Run

Kindly Clear Difference Between php bin/magento cache:flush and cache:clean and when they need to Run . which tasks Output to need cache:flush or clean ** and which task need these Commands => **di:...
5
votes
0answers
64 views

Why the Magento 2 “Collection Data” Cache is used not for all entities?

In my practice I've never really faced with situation that it was needed to clean the collection cache. It is strange) I checked and detected that the magento uses the collection cache only for 4 ...
0
votes
1answer
23 views

Where can I find the cache properties in the Magento 2 database?

I've had some troubles with the caches, they are enabling via CLI using production mode but it's not showing on my admin panel as enabled, it just works using developer mode. I wondering check the ...
1
vote
1answer
20 views

CSS not reflecting after modifications

I'm new to Magento 2 I have an edited CSS file somewhere in app/design/frontend//web/css/, then I run the deploy static content command. I can see the new CSS file is already in pub/static/ folder. ...
1
vote
0answers
41 views

Magento 1: Add custom attribute in transactional e-mail

In transactional mail, I need to add a custom attribute. I modified the below files app/design/frontend/base/default/template/email/order/items/order/default.phtml app/design/frontend/base/default/...
4
votes
1answer
33 views

How to choose right caching technique for Magento2 and how to configure them properly

We are working on a new store and want the site to have cached. I think there are a lot of caching techniques but I would like to which are to be chosen. Ex: Varnish, OPcache, Memcache, Redis. ...
2
votes
1answer
34 views

Why so many cache images?

I am new to Magento 2 and also new to StackExchange. I observed that there are so many images generated in the cache directory. Why do I need this? How can I stop creating these images? What would ...
0
votes
0answers
23 views

Why cacheable=“false” is not recommended on marketplace?

I have developed a custom module, If my cache enables dynamic data pages are not on updating every request so I have added cacheable="false" now everything is working perfectly. XML file : view/...
0
votes
2answers
54 views

How to stop magento to generate all types of images in cache on page visit

I'm using Magento 2.2.5 and when we visit listing or product page Magento creates the various sizes of images in pub/media/catalog/product/cache/ directory which I don't need except some. I have ...
0
votes
1answer
66 views

Varnish cache not clearing from magento admin

M2 Version : 2.2.2 PHP : version : 7.1.26 Varnish version : 6.0.2 Server : Nginx I have configure varnish in my magento website it working well i have checked in frontend and and passed all ...
1
vote
1answer
89 views

What is the use of Magento 2.2.6 product image cache?

I have some points regarding the Product Image Cache to discuss with you. I have created a product from the Magento admin panel. After creating the product, I have uploaded two of the product ...
0
votes
0answers
12 views

Passing data as Javascript variables without caching

I've made some modifications to Magento's swatches via a custom module to display out of stock options on the product page (as non-selectable deactivated swatches, so the user will know that the ...
0
votes
2answers
79 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?
1
vote
1answer
27 views

Cookie based conditional issues

I want to show a popup phtml based on wether a cookie has been set or not in my block class. The logic is roughly: class Popup extends \Magento\Framework\View\Element\Template { public function ...
0
votes
0answers
10 views

Magento 1.9: Hole Punch caching for bundle product (Select Option)

I need create hole punch for Bundle product options. Whenever any bundle item stock becomes out of stock, Admin needs to clean cache every time to get the reflection. I have tried by following code ...
0
votes
0answers
378 views

Magento 2.3.0 product image cache not created when resizing images

I have an issue with Magento 2.3.0 not resizing images from view.xml file in custom theme. My view.xml: <view xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="...
0
votes
2answers
149 views

Magento 2.3.0 does not change the language

I hope you can help me because no solution I find on the internet works. Change the user's language to Spanish And in the local configuration also to Spanish. Clean cache but I can not get it to be ...
0
votes
0answers
30 views

Magento 1.9.3.8 Redis version

I am using Magento 1.9.3.8 with Redis 3.0.6 as backend cache and also my FPC extension is using it for storing files. I am wondering if Magento is still working with latest Redis 5? I can't find ...
0
votes
0answers
12 views

Product Details Page Displaying Blank Invalide Cache Type magento 2

main.DEBUG: cache_invalidate: {"method":"GET","url":"url/admin/cache/index/key/7f0570c5083f7252e95eddbf527ae6fbcd46363a1d0870ba82442c817dc83ab4/","invalidateInfo":{"tags":["interception","CONFIG"],"...
0
votes
0answers
17 views

magento category page not displaying after flush magento cache

I am using magento 1.9, I have customized theme, I did flush magento cache and all my product stop showing. If i change the theme name in magento category it start showing again. What is the reason ...
1
vote
0answers
44 views

Magento 2 how to set permission in production mode

I have successfully completed all issues in developer mode, and now I moved to production mode, every thing is working fine but when I am try to cache clear from admin panel , frontend permission are ...
0
votes
2answers
39 views

Magento 2 Remove Page Cache in Home Page

I don't want cache to happen with home page but need them for all other pages. I am new to Magento and on going through I found that cacheable="false" in block will ignore cache in that page. How ...
0
votes
0answers
18 views

Magento 2 How to clear cache for home page

I dont want cache to be done for home page alone but for other cms_page_view. How can I do it.
0
votes
1answer
18 views

Magento 2 Second time loading not going to observer controller_action_predispatch with cms_page_view

I have created a observer controller_action_predispatch and did an echo its triggering on all page view but with Second time loading its not triggering on cms_page_view for all other pages it ...
0
votes
1answer
24 views

Custom section is ignored on Magento 2

I am trying to create a custom section with private content to not cached. I follow this article: https://webkul.com/blog/sections-magento-2/ I did the first two steps: di.xml <?xml version="1....
2
votes
3answers
182 views

What could cause this (config) cache issue after upgrading from 2.1.14 to 2.1.15?

after upgrading a shop from 2.1.14 to 2.1.15 I'm getting the following exception when visiting any page via the browser: 1 exception(s): Exception #0 (Exception): Notice: Undefined index: in /src/...
0
votes
0answers
33 views

Magento 2 Visual Swatches isn't appear for some products

i have set the color attribute to show as "Visual Swatch" and for some reason the swatches isn't showing up at all for most of the products. All the swatches has values and the simple products has ...
0
votes
2answers
46 views

CSS are compiled but not called in frontend

I added css on my website. One is bootstrap and one is a custom css. I addedd it on my Magento_Theme folder (inside layout/default_head_block.xml) <css src="css/bootstrap/css/bootstrap.css" order="...