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

Magento 2.3 - Topmenu tabs with wrong (cached) 'active' class

I have a small menu problem. The active tabs do not match the active class. If I disable the static_block cache it works again, so it actually looks like the menu is cached and continues to display ...
0
votes
2answers
1k views

Magento 2: RuntimeException it is being used by another process

When I do clear cache using command line & refresh page on Frontend 1st time it gives below exception. 1 exception(s): Exception #0 (RuntimeException): The path "D:/wamp/www/magento2/var/...
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
3answers
567 views

magento-2 flush cache storage

my inod limit is increasing automatically day by day and after some research i was told to clear the cache files i.e delete them. so i was asking if is it ok to flush cache storage form magento 2 ...
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 ...
2
votes
2answers
282 views

Magento 2.2.x cache disabled automatically

First of all, I couldn't find any info about this kind of issue anywhere on the web. We have a production environment with git integration. We pull our changes to it only via git (git pull). The ...
0
votes
0answers
21 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:...
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
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(): ^ ...
4
votes
6answers
4k views

Magento 2 How to make magento not to cache static content of Checkout module?

I'm modifying the checkout process, every time I edit a html file or a javascript file, I must use the command magento setup:static-content:deploy because the html or javascript is cached by magento. ...
1
vote
2answers
209 views

Warning: include(Cm/Cache/Backend/Redis.php): failed to open stream: No such file or directory

I created a new custom module on my magento 1.9 website. After I installed it I got this error on my system.log file: Warning: include(Cm/Cache/Backend/Redis.php): failed to open stream: No such file ...
0
votes
1answer
52 views

Magento 2.2: Base URL removed when attempting to access admin login

Was having problems yesterday with my server, which the community seemed to think were irreparable, so I decided to rebuild it. Set up a LAMP stack with Redis and re-installed magento. Used my ...
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 ...
17
votes
5answers
8k views

How to make Magento 2 development sites fast?

I turned off all caches and I set deployment mode to development. So my Magento 2 development sites on all machines are very slow compared to Magento 1.x sites. Is it normal for Magento 2? What ...
3
votes
0answers
50 views

Product's “Layout Update XML” code disappears from the site every 24 hours

I have some products with "Layout Update XML" Design updates (simple XML pointing to a template file; very basic and in the correct format). Every 24 hours after a cache flush, the code vanishes from ...
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 ...
3
votes
4answers
2k 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 ...
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 ...
1
vote
0answers
86 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
2answers
5k views

Magento 2.2.3 - main.CRITICAL Notice: Undefined index: websites

I've a strange problem with a project that appeared all of a sudden. When I try to enter the site I get this error: An error has happened during application run. See exception log for details. enter ...
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?
18
votes
5answers
17k views

Magento 2: What is difference between Cache Clean & Cache Flush?

In Magento 2 we have 2 commands php bin/magento cache:flush php bin/magento cache:clean What's the exact difference between them? I'm generally using cache:flush. I never used cache:clean. So, ...
14
votes
11answers
28k 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 ...
2
votes
1answer
572 views

Magento Site Layout Breaks Once a Day - Emptying Var/Cache Fixes

One of my client's websites on Magento 1.9.2.3 has been experiencing a strange error once every day (at random times). Where the site is loaded without any graphical styling no images, no CSS, ...
3
votes
1answer
115 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
2answers
1k views

How to refresh/flush cache automatically

Every single time I am trying to upload a few photos, the Cache says "One or more of the Cache Types are invalidated: Blocks HTML output. Click here to go to Cache Management and refresh cache types." ...
2
votes
6answers
2k views

Magento 2 permission issue for cache folder

Everytime I install a new module on my Magento 2, I got an error that the cache cannot be created because of the permission. All what I need to do is to run the following command to fix it. chmod -...
0
votes
1answer
589 views

How to turn off cache for a block?

i want to completely remove from cache the header-minicart. It is confused when magento cache and fpc work together. how can i do that?
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.
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
37 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/...
2
votes
1answer
90 views

Fastly CDN not refresh custom page

We have Fastly CDN configured in Website, and we have a custom page where we are displaying product listing. When admin makes changes in the product, it's reflecting correctly in front-end product ...
2
votes
1answer
628 views

Flush DDL Cache

I created an update script to create some new fields in the database for my custom model. When I am trying to save the model the new fields are not being saved. I thing Magento caches the DDL ...
1
vote
2answers
784 views

Magento indexing causing website downtime

Magento is creating 700 + connections leading to database breakdown whenever cache is flushed or indexing is triggered. Production site remain down for 20 mins till all connections clears. All ...
0
votes
2answers
1k 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).
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
2answers
115 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
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 ...
4
votes
2answers
1k 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 ...
1
vote
1answer
337 views

Issue with search bar caching in Magento 2 after moving it into top menu

Ive recently been working on a change for the search bar field. I have decided to add a toggled search bar inside of my navigation bar which is activated through jquery. My form-mini.phtml is being ...
5
votes
2answers
2k views

Web Crawler creates a lot of sessions

I recently noted that the table core_session is growing very fast ( +400MB ) I'm quite sure this is something abnormal. I have truncated it but after a couple of days, It is again very big. If I ...
1
vote
1answer
598 views

Magento 2: Not Able to Login As A Customer

When i'm trying to Login As Customer, it gives 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\smint\...
0
votes
0answers
20 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/...
4
votes
2answers
2k views

Autoloader still trying to load deleted modules

I've removed a module: Deleted the files under app/code/community Deleted the xml file from app/etc/modules Removed the entry from the core_resource table Deleted all entries under app/...
2
votes
2answers
319 views

Changes Not Showing Client Side Without Clearing Cache

Whenever I make changes css or anything I have to ask the client to clear cache to view the changes same for me. Any advise on how to deal with this. Magento 2.
0
votes
0answers
87 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 ...