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
9 views

Magento 1.9 Diskspace Auto Filling

i'm using Magento 1.9 on 1and1 host, i'm afraid everything work smooth, but suddenly admin login, and checkout feature stop working, but i have resolved these issue by clear some hosting space that ...
0
votes
0answers
17 views

Is “hole punching” in Magento 2 just FPC (full page cache) invalidation

Looking into full page cache for Magneto 2 and I have noticed that if I try to "hole punch" my final_price.phtml block in magento by setting my getCacheLifetime to null, my final price block in still ...
2
votes
0answers
15 views

Magento 2 Custom cache for top menu

I want to create custom cache for top menu For this I have created cache.xml <?xml version="1.0" ?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
0
votes
0answers
23 views

E_WARNING: simplexml_load_string(): ^ after config cache(redis) flush

Config cache flush(from redis-cli run FLUSHALL) is done daily in the morning. Post the flush we see the following warning appear in the logs: Error message E_WARNING: simplexml_load_string(): ^ ...
10
votes
2answers
284 views

Whats the purpose of lockedLoadData / uncached page build takes around a minute, spent in usleep

I think since the update to Magento 2.3.1 I have problems with uncached page loads (during development). I did a blackfire.io trace and it turns out that 42 seconds are spent in usleep here. Now I ...
0
votes
1answer
14 views

Checkout Process is Stuck and loader never disappears in magento 1.9

I have created a replica of production environment,but on dev environment checkout process is stuck and loader(shipping,payment and review) never disapears but everything works fine on production ...
0
votes
1answer
27 views

How to use Magento 2 cache?

I have a requirement where, I have huge custom data(around 5000) to display in a page. Currently, I have displayed them in a table and it takes time when I load the page. I want to save the collection ...
1
vote
1answer
36 views

Problem Enabling Production Mode

I have magento CE 2.2.2 I have a problem when i try to enable production mode. Store give me this error: Unable to retrieve deployment version of static files from the file system. If i run: php ...
1
vote
1answer
51 views

Magento2.2: How to disable cache for homepage only?

I am using varnish cache and also I've added AMP pages for mobile view. Now the thing is varnish is not detecting mobile and tab so I want to disable varnish for the homepage. Everything was working ...
2
votes
1answer
23 views

Why does the Magento cache not auto-flush?

Why is Magento 2.3 smart enough to know that the cache is invalid, but won't just auto-flush?
2
votes
4answers
74 views

Is it possible to make Magento 2 fast (i.e. < 2s page load) without using any caching?

In web development it's good practice to ensure that your applications perform sufficiently well without relying on a cache. Caching should not be used as a crutch or a permanent solution to mask ...
0
votes
0answers
17 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
36 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/...
3
votes
1answer
113 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 ...
1
vote
0answers
84 views

Magento 2.3: How to configure magento CLI commands to use renamed dangerous redis commands

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
23 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
21 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
17 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
28 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
33 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
84 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
70 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
62 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
73 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
22 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
16 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
65 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
33 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
25 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
18 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
35 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 ...
5
votes
0answers
100 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
24 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
22 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
42 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
38 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
42 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
26 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
81 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
89 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
102 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
113 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
29 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
12 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
513 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
200 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 ...