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

Magento 2 admin and server return different cache enabled/disabled

This is on Magento 2.2.2 I installed a module last night that required disabling all caches before installing. I did so using SSH commands after putting it into developer mode. Then installed the ...
0
votes
0answers
4 views

Product images 404 on alternate storeviews only

I recently got a Security Scan warning at Magneto.com about %pub% directory setup. I fixed it. The site appears fine except I am running a multi store setup which each store setup as SUBFOLDERS. The ...
0
votes
0answers
12 views

Magento 2.3: Can backend pages be cached as well?

My impression is that Magento (2.3.5) does not apply caching on pages in the backend. Is this as intended? If so, why? If not, can caching get enabled for backend pages?
0
votes
0answers
5 views

Can the modal widget appear once per session?

I'm working on a modal triggered upon page load which I would like to appear once per session. Is this possible? Here is the test page https://www.dealerboots.co.uk/test <div id="custom-popup-...
0
votes
0answers
13 views

Magento 2: Desktop and Mobile Themes switched after flushing the cache

I'm using two themes for the Magento 2: Desktop Theme and Mobile Theme. But, I am facing a strange issue. After flushing the cache, If I refresh the site on my desktop, The Desktop version loads ...
0
votes
1answer
8 views

Indexer catalogrule_rule is set to invalid and causes the cache to be flushed a lot

I'm having a slowness issue on my client cloud instance. Indexer catalogrule_rule is set to invalid and flush the caches a lot so the site is always slow even when we have the Miravit cache warmer ...
0
votes
2answers
61 views

Varnish Cache not working Magento 2.3, iginx proxy and apache2 backend webservers

I have a site setup with nginx as proxy serving an apache2 server, I'm trying to implement varnish caching. nginx is listening on 443 and 80 varnish is configured to listen on 8080 apache2 is ...
0
votes
0answers
13 views

Disabling product image resizing and cache?

I have all my product images hosted and resized already stored on AWS S3. I am running Magento 2.3.4 and I do not need it to resize or cache any product images at all. I'm currently going through the ...
0
votes
0answers
38 views

Magento 2: Check customer is login, i mean REALLY login

After all research and looking in Magento 2 source, the only thing i can do and suggested is: \Magento\Customer\Model\Session $session->isLoggedIn() or \Magento\Customer\Model\Session $session-&...
0
votes
0answers
11 views

Magento 1 does not generate cache in the subdomain

I moved the media, skin and js folders to the subdomain of my site. So now the resources in magento are called with this address: subdomain.mysite.com Everything works and the addresses are taken ...
0
votes
0answers
13 views

Magento 2: How to pass date in URL to home page logo?

I need to pass date-stamp in the format 20200513 in URL to homepage logo to ensure browser doesn't cache the logo and gets the latest logo whenever the logo switching recurs following a cron job meant ...
1
vote
1answer
27 views

Magento 2.3.5: Quote in Session

I just upgraded to Magento 2.3.5. I'm having an issue where I can't force magento 2 to read the quote from database. It stores the cart in the variable "mage-cache-storage" and reads it from there. ...
0
votes
1answer
24 views

Why I see X-Magento-Cache-Debug in production mode?

I have Varnish configured in my server and my project is running in production mode, even though, I continue seeing the debug tag X-Magento-Cache-Debug in the header. According to Devdocs - Varnish ...
0
votes
0answers
8 views

Magento CE 2.2 - Cookies/Cache/Session issue when Server Load overloads

Aside from the obvious answer of upgrading the amount of CPUs on our webhost to alleviate the traffic and prevent Server Load overloads, we are trying to find out what we can do about the cache/cookie/...
0
votes
0answers
5 views

Checkout page is being saved in disk cache

Randomly, the checkout page will be saved into disk cache (Chrome) then customer will be redirected to /checkout/cart with status code of 302 from Chrome. Even though I have set up Cloudflare to "...
0
votes
1answer
57 views

How to remove cache from my Block class?

I need to remove the cache from my Block class, even if it removes the cache from the entire page. How could I do it?
0
votes
0answers
19 views

Magneto admin Url is not working . Need to clear cache always

I am using magneto 2.2.6 . The website is working fine until i installed new extension . When the time of installation i run the following command php bin/magento setup:upgrade php bin/magento ...
1
vote
0answers
19 views

How to control block XML cache via admin?

I've created a condition in my admin panel to enable or disable a feature in my module. In my XML I used the ifconfig to check if it's enabled or disabled. I want to disable the cache in the entire ...
0
votes
0answers
12 views

Magento 2 : Add, read and delete custom key value pairs in Redis

I want to implement a custom cache for a feature and want to store key-value pairs in Redis for the same. Is there some standard class/implementation which I should follow to go about accomplishing ...
4
votes
1answer
111 views

How to add extra pricing data in product_data_storage?

I have added extra price in Advance pricing in Admin. Everything is working well expect the data for the Recently view products which comes from Local Storage > product_data_storage How to add that ...
0
votes
1answer
22 views

Angular is not loading properly

I am trying to add a functionality in magento2 using Angular. But every time I run the page it gives this error Uncaught Error: [$injector:modulerr] Failed to instantiate module MbApp due to: Error: [...
0
votes
0answers
7 views

Cached Images color lost

I have a strange issue on my site. Images are losing their original color and appeared like some layer on top of it. This is happening only after the image is cached, but the original image looks ...
0
votes
0answers
11 views

Flush Catalog Images Cache - Magento 2

I used to be able to navigate to the Cache Management page and click the button that allowed me to flush the catalog images. This button has now disappeared from this page along with the javascript/...
0
votes
0answers
25 views

Image Cache Generation

I have recently discovered a issue with my Magento 2.3.0 image cache generation. I don't actually know when the problem started happening. Only thing of note that I have been doing is importing a ...
0
votes
0answers
20 views

Recommended redis setting for tcp-keepalive for Magento2

Is there a recommended Redis setting for tcp-keepalive for a busy Magento 2 store? I've seen some things that say set it to zero, others say 60s seconds, etc... Is it also recommended to set the "...
0
votes
0answers
15 views

What is the correct way of flushing cache by TAG programmatically? (including Varnish)

I've been looking for a correct way of flushing cache by tag programmatically and have found 2 different solutions when it comes to CMS Pages: Using the CacheInterface as described here, which ...
0
votes
1answer
24 views

Magento2 how to stop generating Cache for Images?

I don't want Magento to generate cache for images. How can I restrict cache generation for images?
1
vote
0answers
14 views

Magento 2 How to set cache-lifetime for only homepage

I want to set separately cache lifetime for the homepage only. Not for other pages.
0
votes
0answers
31 views

Magento 2, Varnish and logged in users

Using Magento 2 and Varnish 5, varnish works perfectly if you aren't logged in. But when logged in as a normal customer you get an 80%-90% varnish miss rate. Is there any way to use data cached in ...
0
votes
0answers
29 views

Removing products from the database using datapatch

I am removing products from the database using datapatch but changes are not made in the database. When debugging, everything works fine. My data patch is: <?php declare(strict_types=1); ...
0
votes
0answers
9 views

extending Magento\Catalog\Block\Product\View but getProduct() is cached?

I have an api call to a 3rd party that I need to make on a product page. However the api call is particularly slow. I want to cache the results of the call on a product page. I have extended the ...
0
votes
1answer
24 views

Magento 2 I want to flush only homepage cache from admin

I Want to flush only homepage cache from the admin side no other pages affected. how to achieve this.
0
votes
0answers
20 views

If a customer is logging in within 2 to 3 minutes of another customer logged in, it is getting information of previous customer

Magento version is 2.2.4. I am facing very strange issue. The last login of a customer is persisting for 2 to maximum 3 minutes. And if within this time some one else logging in they are ...
0
votes
1answer
9 views

CSS changes does not affect on normal browser magento 2 issue

I have made some css changes in my website, like hidden "Add to cart" option from everywhere on the website. This css gets only affected in incognito mode and not visible on normal browser. Customer ...
0
votes
0answers
15 views

Magento 2: fastly cache is not working on my site(which is not hosted on cloud)

Fastly cache is not working on my site(which is not hosted on the cloud). I am checking in the network header. Showing: fastly-page-cacheable: NO Can you please check? Thanks
0
votes
1answer
29 views

Permission on OpenLiteSpeed Server localhost with Magento 2

I'm using CentOS 8 as my OS on my laptop and currently running OpenLiteServer (lsphp73) and have been successfully installed phpmyadmin and magento 2.3.4. Then, it comes with a problem that everytime ...
0
votes
1answer
26 views

Changes does not reflect on frontend magento 2 issue

For temporary purpose, i have disabled all the 'Add to cart' options from my site, so that the customer cannot place the order. I checked at my end, on desktop as well as on mobile, the Add to cart ...
0
votes
0answers
20 views

When uploading a picture to a product from the admin It doesn't show up on the front end until I run catalog:images:resize

Is there something else I can do to show the picture on the frontend? Without the catalog:images:resize command?? Thanks!
0
votes
0answers
12 views

Magento 1.9: JS File in browser does not change

I'm using extension Cm_RedisSession to enable Redis, when i change a js file in media/js folder, and when I reload the browser it still didn't change, i already did these: Delete var/cache , var/...
0
votes
2answers
41 views

Pages are not displaying on the front end properly

I don't know what my developers did but a site that was loading fine is now showing users basically I'm assuming how a bot sees it. Only shows menus at the text, no pictures unless you scroll so far ...
0
votes
0answers
29 views

File in Pub Directory Not Updating in Magento 2

I have updated a .js file in pub directory and run cache:flush. But when I open website/filename.js in browser and incognito browser, it still load the old file. The permission to pub directory is ...
1
vote
0answers
89 views

Magento 2.3 - static-content (JS assets ) give 404 some times on production

I have Magento CE 2.3 on production mode the my store running OK but some times some JS & jQuery gives 404 and the website request in-existing assets from pub/static which causes the whole ...
1
vote
3answers
58 views

Magento2 - How to create cache files manually

What are the cache directories of Magento 2. Just I need to remove those my rm -rf command without executing Magento cache:flush command.
0
votes
1answer
30 views

Image sizes in detail page size is too small Magento2?

I met one strange issue in Magento 2 - Product Detail page my product image display too small.I tried using view.xml inside my theme and tried using fallback view.xml.I'm using Blank theme as parent. ...
0
votes
1answer
112 views

Uncaught PDOException: SQLSTATE[HY000] [2002] No such file or directory .Magento 1.9 indexing error

I have installed Magento 1.9 but when I am trying to run indexer command I am getting following errors. PHP Fatal error: Uncaught PDOException: SQLSTATE[HY000] [2002] No such file or directory in /...
0
votes
4answers
121 views

Cache Types are Invalid. How can i resolve this permanently?

Error: One or more of the Cache Types are invalidated: Configuration, Page Cache. Please go to Cache Management and refresh cache types. How can i resolve this permanently?
0
votes
1answer
181 views

Purge specific Link from Magento 2 Varnish

I am trying from console to purge and refresh one specific link of my magento 2 store in Varnish. I don't want to clear the whole cache but just one link. I tried: curl -X PURGE http://www.example....
0
votes
0answers
94 views

Magento 2.3.4 Cache Issue

I am having issue with magento 2.3.3 and 2.3.4 versions. I am using Grouped product structure. On product page if I choose one of the related product then it start showing starting at: price on top of ...
2
votes
2answers
87 views

Magento 2 Multiple Nodes Clear non-FP caches

Considering a multi-node setup where there is a single Varnish server for load balancing and multiple Magento servers (Apache and Magento on each), what is the recommended setup so that using Admin (...
0
votes
0answers
17 views

What could cause Magento 2 FPC to get invalidated?

Without any backend operations I am seeing product and category pages getting invalidated within 24 hours. Store uses Varnish for page cache and Redis for session.

1
2 3 4 5
22