Questions tagged [cache]

Question related to Magento default caching system, full page cache or 3rd party caching solutions.

Filter by
Sorted by
Tagged with
4 votes
1 answer
135 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. ...
Bharath's user avatar
  • 498
4 votes
0 answers
95 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 ...
YWSW's user avatar
  • 326
4 votes
1 answer
2k views

Magento 2 - Checkout session empty in payment method

I'm modifying mercadopago module, and i need to work with the checkout session. When i use this function $this->_checkoutSession->hasQuote() It returns false. My class is: class Payment ...
Macr1408's user avatar
  • 280
4 votes
2 answers
364 views

Help understanding the code and logic behind Magento's full page cache?

I recently upgraded my Enterprise store to v1.14, and am not convinced that the full page cache is working properly. I say this because there's no difference in page loading times with the FPC turned ...
WackGet's user avatar
  • 1,188
4 votes
1 answer
767 views

Can't create user or log in to Magento Front End ce 1.9 with Chrome

This is a strange problem that has occurred after installing SSL on my hosting package (not sure if linked). I am unable to create a new user or log in with an existing user at front-end (backend is ...
Ben Lamb's user avatar
4 votes
2 answers
35 views

Refreshed Cache now rendering a mess

Had error bar in admin to refresh cache. Did so and now site is down and rendering looks like Prodigy circa 1993. Suggestions?
Zoomnbyu's user avatar
3 votes
6 answers
26k views

How can the Magento caches & logs be cleared?

How can I go about clearing all of Magento's caches and logs by running a PHP script?
Bhavesh Godhani's user avatar
3 votes
2 answers
20k views

How to force reloading of a customer data section?

I'm using CustomerData library to display private content (Magento docs). I see that in etc/frontend/sections.xml I can configure which requests would result in requesting the data from the server ...
Jānis Elmeris's user avatar
3 votes
2 answers
3k views

Generation of var/cache/ var/generation and var/di folders Magento2

I have a very simple question. Which magento commands cause the removal of var/cache/ var/generation/ var/di/ Folders and which bin/magento commands create them again.
Lachezar Raychev's user avatar
3 votes
3 answers
8k views

Magento : disable cache for static block

I have one file that called from static block in which i display product information on menu. {{block type="core/template" title="BEST SELER!!!" sku="ASS030530010" template="catalog/product/...
Ketan Borada's user avatar
  • 2,603
3 votes
2 answers
6k views

Does setting a cacheable false on block invalidate full page cache for entire page?

I have heard this but I cannot confirm it. Does anyone know?
LM_Fielding's user avatar
  • 1,533
3 votes
3 answers
10k views

How to remove the Breadcrumbs from the homepage

When Full Page Cache is on the breadcrumbs show up on the home page, i've tried changing the line <?php if($crumbs && is_array($crumbs)): ?> to <?php if($crumbs && is_array($...
Memor-X's user avatar
  • 686
3 votes
2 answers
5k views

Category product list block cache improvement

I rewrite catalog product list block for caching issue. Please review code and give your advices to improve caching and cache-validating issues for huge product listing category pages. Who has better ...
mageUz's user avatar
  • 6,234
3 votes
1 answer
821 views

How to store cache in centralised ID folder in magento?

Heres my problem: I have multiple stores setup on my site. www.xyz.com/us www.xyz.com/uk and so on... Now each of these stores generates image cache that gets stored under media/catalogue as ...
user2240778's user avatar
3 votes
1 answer
3k views

Reload system config to get last saved values

When I save new value of a custom option in system config that new value is not available in the same request. For example, somewhere at the beginning of a controller action in a custom module I save ...
zitix's user avatar
  • 2,192
3 votes
2 answers
2k 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 ...
RedHead_121's user avatar
3 votes
1 answer
2k views

Magento 2: When to use cachable=false in Layout file

In Layout XML file, if we don't want to cache a block we use cachable=false. By default, it's going to cache. When to use cachable=false & how it effects to website performance?
Jackson's user avatar
  • 9,889
3 votes
2 answers
13k views

Reindexing option not available in magento 2.0 [duplicate]

I applied some product catalog rules and deleted them but site still shows the discount. I also clicked on apply filter but nothing happened. Prior to 2.0, I was able to do it from the admin panel. ...
devdoe's user avatar
  • 460
3 votes
2 answers
478 views

remove caching of block

I've tried: <block type="page/html_topmenu" name="ajaxCart" as="ajaxCart" template="page/html/ajaxCart.phtml"> <action method="unsetData"><key>cache_lifetime</key></...
easymoden00b's user avatar
  • 1,277
3 votes
2 answers
2k views

Why php code is getting cached in Magento 2 listing page?

I have built in full page cache enabled in Magento. I have added following code in app/design/frontend/Vendor/Module/Magento_Catalog/templates/product/list.phtml which shows whether an item is ...
amitshree's user avatar
  • 7,006
3 votes
2 answers
6k views

I am getting error of page_cache is not writable in magento 2.2.5 in linux os

I am trying to add a grid in admin side. I am getting this error Fatal error: Uncaught Zend_Cache_Exception: cache_dir "/opt/lampp/htdocs/magento2.2.5/var/page_cache" is not writable in /opt/lampp/...
Bhakti Thakkar's user avatar
3 votes
2 answers
3k views

Every time i make changes in my template file i need to flush cache

I'm new to Magento ( 2.4.1 ) Every time i make changes in template files i need to flush cache every time usin php magento cache:flush in CMD ... this is too much time taking... Very slow development.....
Fozia Zahoor's user avatar
3 votes
2 answers
5k views

Set cache-control in HTTP headers for UI Components (Magento 2)

The main delay in Magento page loading into client browser is the js/html files summary delay. So, my homepage is loading about 9 sec., DOMContentLoaded = 1.75 sec. (PHP generated HTML) and all other ...
Alex Gusev's user avatar
  • 2,009
3 votes
1 answer
3k views

.js and .css files suddenly giving 404, making the entire website become without any formatting or functionality!

This morning I got a call from our client about how their website is no longer loading correctly, showing all text, no formatting, etc.. Even the admin page login wasn't working correctly. I opened ...
Pat's user avatar
  • 794
3 votes
1 answer
11k views

Magento Cache in two places, tmp and var/cache

I was changing my secure Base Skin URL, Base Media URL,Base JavaScript URL to a cdn url yesterday and had a typo, which messed everything up on Secure pages, including the Admin. So I went in to DB ...
Kevin Young's user avatar
3 votes
1 answer
938 views

removing a template from the cache

I'm getting a template via: <?php echo $this->getChildHtml('ajaxCart'); ?> and the block is declared like this: <block type="page/html_topmenu" name="ajaxCart" as="ajaxCart" template="...
easymoden00b's user avatar
  • 1,277
3 votes
1 answer
5k views

Check if user logged on to admin or not, stops working after installation of Redis Session Cache

I have this code, found on the Internet, to check if a user is logged on to the admin pages or not. I recently installed Redis Session Cache successfully, and now these lines of code doesn't work ...
Aknot's user avatar
  • 288
3 votes
2 answers
3k views

Flushing Magento Caches with Magerun

While learning about the diverse caches in Magento (e.g. per Various Magento Cache flushing methods, I was wondering which of these Magerun supports on how the commands would look like?
hakre's user avatar
  • 2,831
3 votes
3 answers
899 views

Magento Performance: How to use several subdomains (static1-3) for static assets?

is there an easy way to add subdomains to the URLs of my static assets (JS, CSS, images) in Magento? What I am looking for is a way to change an url like this http://store.com/js/script.js to this ...
Øle Bjarnstroem's user avatar
3 votes
2 answers
566 views

What are the Differences between these runcompilation,cache management and index management?

I am using Magento, but manytimes mychanges could not make anything in results.. So,i got some answers from stackoverflow and some other sites as use cache management, index management and run ...
Manikandan Arunachalam's user avatar
3 votes
1 answer
1k views

Cron does not reschedule currency_rates_update job until Cache Storage is flushed

One problem I have been assigned to investigate is to the updating of currency rates via the cron job. I was able to get it to update fine, but when I went to run it again after changing the time (by ...
Memor-X's user avatar
  • 686
3 votes
3 answers
5k views

Caching problem for html and js file in Magento 2

I am working on Magento 2 knockout js. But when I am changing HTML or js file it's not effecting on frontend I run all this command setup:upgrade, static:content:deploy, di:compile, cace:flush But ...
paras sakariya's user avatar
3 votes
5 answers
1k views

Magento 2: Checking Customer Logged In not work in navigation menu

I want to add some link to navigation menu in magento 2. Some link will display after checking customer logged in or not. I tried to create a plugin. namespace AIS\Custom\Plugin; use Magento\...
Haze's user avatar
  • 439
3 votes
2 answers
946 views

Getting cloudflare to work with magento 2

This is a complicated subject for me because I'm brand new to server work so I will do my best to explain what I have done and what the issue is. The bottom line is that as you can see below, my ...
DarthVegan's user avatar
3 votes
1 answer
92 views

When does magento cache become invalid

We have a situation that the Magento cache is refreshed every night automatically. Afther this a script runs which visits every page to build the cache and every page will be fast. This works, however ...
Benidorm's user avatar
3 votes
3 answers
3k views

Could not determine temp directory, please specify a cache_dir manually

I have installed Magento 2.0.0.0 on Windows with IIS 8. When I try to add a new product I get a message: "Could not determine temp directory, please specify a cache_dir manually" When I click the '...
Mike Rouse's user avatar
3 votes
2 answers
2k views

What's the difference between `getCacheKeyInfo` and `_getCacheId`?

What's the difference between getCacheKeyInfo and _getCacheId? Why _getCacheId is not enough to cache a block?
tmm's user avatar
  • 359
3 votes
2 answers
7k views

How display product Image in best quality

The small images I upload to my site seem to have a quality problem in the catalog. I attached images, In the image Its little bit hard to see but there is a big different in the images. I need the ...
user3270551's user avatar
3 votes
2 answers
16k views

Force client-side browser CSS/JS cache reload

How can I force the client browser to re-fetch JS / CSS files? I've noticed that when I add to existing .CSS files, the updates are only applied if the user refreshes the page. (In other words, simply ...
Moose's user avatar
  • 7,495
3 votes
3 answers
543 views

Is it necessary to disable the cache before creating a module?

I am newbie to Magento. I'm learning to create my first module but I'm confused whether it's necessary to disable the cache or not. If yes, please tell me how? Thanks,
hgfihif's user avatar
  • 49
3 votes
2 answers
1k views

Magento 2.3.3 Varnish Cache invalidating and auto purging every 10 minutes

I have just implemented Varnish 6.0 on our Magento 2.3.3 install, everything seems to be working fine except our Magento cache/varnish cache is being flushed by Magento every 10 minutes. I can see ...
Nadroj467's user avatar
  • 561
3 votes
1 answer
3k views

AH01070: Error parsing script headers in PHP-FPM when accessing certain product detail pages in development mode

So I am getting after some probably unrelated changes the error [Wed Sep 04 16:00:18.155246 2019] [proxy_fcgi:error] [pid 22240] [client 192.168.0.160:35618] AH01070: Error parsing script headers [...
Alex's user avatar
  • 13.8k
3 votes
1 answer
908 views

Magento + Redis: same config for two different instances - safe?

Can I use the exact same config for redis for two different magento instances or do they access / write to the same cache? F.e. I have a "production" and "staging" instance of magento which have their ...
koseduhemak's user avatar
3 votes
2 answers
547 views

magento enterprise session cache issue

I am working on magento enterprise 1.14.2.0 and we installed all patches that required. I am facing issue with cache or session when customer login to his/her account, Customer name display wrong ...
Vaibhav Ahalpara's user avatar
3 votes
2 answers
148 views

Which Magento 1 caches should be cleared after installing an extension?

As a rule of thumb, which Magento 1 caches should be cleared after installing an extension?
dgitman's user avatar
  • 295
3 votes
2 answers
3k views

Magento Speed issue google PageSpeed Insights Eliminate render-blocking JavaScript and CSS in above-the-fold content

I tried this methods link to speed site, but still not working. please suggest me how to speed up the site for mobile version.
Raj Mohan's user avatar
  • 238
3 votes
2 answers
3k views

Remove Custom Block from Cache

I'm strugling with disabling the cache for an individual block in Magento 1.9. I've enabled the "HTML Blocks" in cache management and the site is much faster although I have a static block on the ...
Walshie1987's user avatar
3 votes
3 answers
3k views

Magento still writing in system /tmp

I've read several threads about this, but still can't resolve the issue. We use apache + PHP-FPM. In Magento tree files are owned by apache-user:dev. Now, using 775 / 664 for dirs and files. Also, we ...
Marc's user avatar
  • 383
3 votes
2 answers
1k views

caching topmenu.phtml

i have a custom topmenu.phtml that adds a lot of load time to run on every page how can i make it get cached and only regenerate the menu html once a day? thanks I tried searching but am getting ...
Yehuda Schwartz's user avatar

1 2 3
4
5
24