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
22 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
17 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
1answer
13 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
0answers
7 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
1answer
14 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
22 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
1answer
24 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
2answers
13 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 ...
1
vote
1answer
119 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. ...
0
votes
1answer
27 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(...
0
votes
0answers
13 views

Magento 2.3 Bundle Issue

I have searched everywhere for the past 2days but cant find a answer. I have magento 2.3 with a custom theme. Im trying to add a bundled product. On the backend i add the product successfully but then ...
0
votes
1answer
19 views

disable cache for particular category in magento2

I have a category page with customer specific products, so those products should display based o current customer id. basically caching issues are coming when I'm switching from 1 customer to another ...
0
votes
0answers
14 views

Product Image Cache - Image Resizing Error

My server admin manually deleted product images cache which cause product images are not showing on product detail page. I am running this command to regenerate product images cache but it is stopped ...
1
vote
1answer
18 views

How to change or set cache key based on browser user agent?

Is it possible to maintain separate caches in Varnish or Fastly for desktop and mobile users? I am trying to load only the required items in the mobile devices instead of loading all CSS files, blocks,...
0
votes
1answer
30 views

getFullAction is not working when cache enabled

I'm looking to set different response headers for different pages. I have tried with controller_front_send_response_before. The problem is getFullAction method returned the value (cms_index_index) ...
0
votes
1answer
22 views

Changing the positon of sign in and create account from header to footer

I have created a custom theme which has parent theme as luma. Created a folder default.xml inside the theme_name_folder/layout_folder. Trying the change the code but its not reflecting in the theme. ...
0
votes
1answer
26 views

Cache Clean setup is not working

After running the bin/magento cache:clean the setup gets 500 Error i saw the log means PHP Fatal error: Uncaught Zend_Cache_Exception: cache_dir "/var/www/html/var/page_cache" is not ...
0
votes
1answer
15 views

Session, Default and Page Cache via redis

we are providing a multi store Magento 2 Shop on a multi webnode infrastructure. Sessions are handled by a redis docker on the DB Server. Is it useful to start new separately docker instances for ...
0
votes
0answers
9 views

Info_buyrequest not loading after editing quote on cart configure product page

I am running magento 2.3 using Redis as cache. When an item it added to the basket I store additional info into info_buyRequest. If I then goto the cart page and select edit I get sent to the cart ...
0
votes
0answers
21 views

php.ini on magento cloud readonly

I need increase some values in my php.ini from magento-cloud environment, but with my user with admin roles opens the file in onlyread mode. Searching I found this, wasn't succesfully Disable/Readonly ...
1
vote
0answers
60 views

Magento 2 Varnish caching add to cart session from another user

When adding an item to cart, it will also show a second item, which I have previously added to cart from a different device. If I bypass varnish cache, cart seems to work ok. Guess I am missing a ...
0
votes
0answers
17 views

Magento 2 - Site loading forever and nothing happens, until I delete cookies

I am developing using grunt. After flushing the cache, It often happens lately that the site is loading forever and nothing happens. There is no error logged in the console and the browser console ...
0
votes
0answers
13 views

gclid applied to links within the site

Magento 2 site. I've been told that this is due to the site caching versions of the page which contain a gclid or a fbclid in the url. It occurs intermittently and is impossible to keep on top of as ...
0
votes
0answers
23 views

Really big cache files

I have tons of cached files in var/cache/mage--... folders that are named like this: BLOCK_EAAA81C2B03F53B9841775345609AD7DFA54C002_168_FINAL_PRICE_LIST_CATEGORY_PAGE_EUR_20210322_1_1_5 The file ...
0
votes
0answers
6 views

Cache issue with saving configurable field programatically

I am saving a configurable field programmatically by this code: // @var Magento\Framework\App\Config\Storage\WriterInterface $this->config->save('custom/general/average_score, 100); The code ...
0
votes
0answers
41 views

Update special prices: Problems with cache invalidation

i have strange problem/issue/bug/feature ... whatever... Case: Every day on defined times a module will import a few special prices for some products. So in this case the cache and the index has to be ...
2
votes
1answer
28 views

Magento 2 : Get invalidated cache types

I am creating a module that clears invalidated cache, I am trying to get invalidated cache types in controller, so i can clear cache for only cache types which are invalidated. How to invalidated ...
0
votes
2answers
88 views

Is there a need in Magento 2.4 for Cache warmer extension or Google Page Speed Optimizer?

Magento ver. 2.4.2 4 x 2.50 GHz Cores 8 GB RAM 5 TB Bandwidth 5000 Mbps Network Out We used to run Magento 1.9.4 but are switching to Magento 2.4.2. Every time I installed Magento 2.x it always ...
1
vote
1answer
74 views

Magento 2 : Cache types (When to clear which cache)

Here i am talking about magento 2 default cache. I am looking for a clean idea, when to clear which cache. For example if change made to layout file, we can simply execute one php bin/magento c:c ...
0
votes
1answer
29 views

500 internal server error after terminal commands

I have an issue with Magento 2 commands. Every time I do : bin/magento setup:upgrade bin/magento setup:di:compile bin/magento cache:flush bin/magento cache:clean rm pub/static, etc... ... I get 500 ...
0
votes
2answers
103 views

Magento2: How to serve cookie-less cached version for crawlers on Varnish cache

As far as i know; magento assign a X-Magento-Vary cookie to each visitor first you visit website. So your first request always be non-cached version. After you got a X-Magento-Vary you see cached ...
0
votes
0answers
22 views

Magento2 - After deletion of product, how to delete /avoid auto generation of placeholder (ghost) pictures?

we deleted products and its associated images from /pub/media/import /pub/media/catalog/product/ Also from /pub/media/catalog/product/cache/ However, the images re-appear, not the original image, but ...
1
vote
0answers
14 views

Magento2: Images are not shown on second website

I've created a second website, with separate store and store view, where i wish to show only some of the products of the main website. I'm having some problem with images, even tho not consistently. ...
0
votes
0answers
14 views

504 Gateway time out error after Cache Flush

After doing the Cache flush I am getting 504 Gateway time out error and after 5 mins the application is starting otherwise I have to restart the server manually I deploy my application in AWS.
1
vote
1answer
96 views

Magento with Varnish - var/cache folder still being used

I have a Magento store configured with Varnish. When everything is up to date site is fast. If I change something in the backend it doesn't get reflected on frontend unless I manually delete var/cache/...
0
votes
0answers
37 views

Magento 2.3.2 - Very weird checkout cache issue

Hoping someone can help here. We have a Magento 2.3.2 website. There's nothing particularly special, functionality wise about it. It uses cloudflare, which could be a cause, but the hosts assure us ...
0
votes
0answers
11 views

Tax required field not working with multi-website 2.4

I have a Multi-Website where I want the tax to be required for one website and optional for another website, Website reloaded first takes the configuration option for both websites. Facing Catch issue....
0
votes
1answer
51 views

Uncache dynamic blocks in cms page using Lesti FPC

I have two blocks that deliver dynamic data, set up in a CMS page. One block is a button that needs to look activated if a DB record is found and says "Download (PDF)" or be grayed out with ...
0
votes
1answer
21 views

Deleted files won't go away

I have a file that's auto generated by my theme. It's called design_storename.css There are a few changes that weren't updating on my site, so I deleted that file, changed another setting and it ...
0
votes
0answers
20 views

How to prevent Host Header Poisoning in Magento 2?

I'm using magento 2.4.1 , i tried to make a GET request, i added ':22345' as suffix in my host header so it will look like this: when I invoke this code in phtml file echo $block->getRequest()->...
0
votes
0answers
12 views

in env.php correct?

I have noticed that when I run bin/magento index:reindex && bin/magento cache:flush my cache folder continues to grow until the server runs out of space (around 350GB). The only thing I have ...
0
votes
0answers
7 views

Configurable product is showing varation for for first time but then variation is not shown

I am facing a weird problem , the configurable product is showing variation Some products are showing variations and some are not they are having same attributes filled up at the backend Kindly guide ...
0
votes
0answers
19 views

Magento product catalog not showing

I am running Magento 2.3.3 and I an issue with product catalog images not showing both on frontend and adminhtml. I have seen that it is a common problem, but I tried all recommended solutions, but ...
0
votes
1answer
40 views

Local site not loading after disabling two factor auth module and clearing cache in magento 2.4.1

I have installed Magento 2.4.1 via composer install, then I tried to log in to the admin it asks for two-factor authentication, I have disabled the two-factor authentication using the command (bin/...
0
votes
0answers
19 views

Should the Cache automatically update after I change a CMS Page?

In my Magento 2 store, I always have to clear page cache after I update a CMS page (FPC is through Varnish). I have been doing this for some time but recently stumbled upon another thread suggesting ...
0
votes
0answers
23 views

Magento 2 with redis site not loading

I have configured the Redis cache as per Magento documentation. But if I run the cache:flush command the site loads lot of time and I'm using AWS RDS, The CPU of the RDS instance is 100% used. I also ...
0
votes
1answer
149 views

Change js file in production mode

I changed this file app/design/frontend/VENDOR/THEME/web/mage/validation.js But changes are not reflected; I'm in production mode I deployed static content with bin/magento setup:static-content:...
0
votes
0answers
19 views

How to clear swatches cache when there is an update from an external source?

I have some changes where swatches should be greyed out for some product depending on its stock in physical stores. I get the stock in physical stores from a webservice (which is ran every 5 mins by a ...
1
vote
1answer
41 views

How to use redis endpoint in magento 2.1

i am unable to add redis endpoint in magento 2.1 below is my code that i added in "etc/env.php" Please let me know what i am missing 'cache' => array( 'frontend' => ...
0
votes
0answers
15 views

How to properly integrate Magento 2 with Cloudflare cache

I just enabled Cloudflare cache with my magento 2.3.4 , the problem is most of the image and js file cache status is always MISS: Is this related to the server configuration or magento 2 .htaccess ? ...

1
2 3 4 5
23