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
0answers
8 views

Magento 2 Redis L2 cache preload suffix :hash or :version

Reading the Magento 2 documentation is a little bit confusing. Should I use the suffix :hash or :version? If you visit https://devdocs.magento.com/guides/v2.4/config-guide/redis/redis-pg-cache.html#...
0
votes
0answers
7 views

Cache types are Invalidate while product saving in admin

main.DEBUG: cache_invalidate: {"method":"GET","url":"http:/","invalidateInfo":{"tags":["cat_p_6","cat_p_9","...
0
votes
0answers
14 views

How can i list of all custom cache tags?

I have been using the afterGetIdentities for products to set my custom cache tag. i.e - related to a specific DateTime condition. for example, i am adding this cache tag ...
0
votes
1answer
14 views

Magento 2.3.2 - Problems with merged CSS/JS file cache on production

We experience an issue almost every single time we deploy new code to the website, whereby we get 404 errors for merged CSS/JS files. To me, this seems like there is something pointing to the location ...
0
votes
0answers
16 views

Is it possible to add any additional info to product cache tags?

I would like to add additional information on product cache tags.For example, i would like to set a date/year as below i.e $tags[] = Product::CACHE_TAG . '_' . $this->getProductId() . '_' .'...
0
votes
0answers
15 views

Magento 2 | Flush catalog images in production mode

I updated the photos of the products already existing on my site in Magento2 and they are in production mode. Unfortunately I don't see the updated photos, not even when I clear all the cache so I ...
0
votes
1answer
29 views

How to remove cache images if they not in used in magento 2?

i need to create new script if the image not present in real folder and not in used than delete from cache folder example Cach folder image pub/media/catalog/product/cache/...
0
votes
0answers
13 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 ...
0
votes
2answers
24 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
1answer
38 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
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
14 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 ...
0
votes
1answer
16 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 ...
0
votes
1answer
30 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 ...
0
votes
1answer
48 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
1answer
30 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
34 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
16 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
22 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
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
1answer
26 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
17 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
330 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
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(...
0
votes
0answers
17 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
37 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
28 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
28 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
32 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
23 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
43 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
19 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
13 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
27 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
85 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
16 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
26 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
14 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
70 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
31 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
180 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
241 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
31 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
177 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
39 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
19 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
2 3 4 5
23