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

Magento 2 - Admin product page layout issue

I am facing an issue while trying to go on the product page from a catalog in the admin. The product page grid layout not loading properly. Every time when I clear cache, page load correctly. What is ...
1
vote
1answer
19 views

Magento 2 Looking for configuration saved event

I'm trying to write something that automatically clears cache on magento, when user hits Save, on any pages under Backend / Stores / Configuration. I'm only looking for the proper event to hook into ...
1
vote
0answers
20 views

customer login link should be change to logout/sign out but still it is showing login

After customer login link should be change to logout / sign out but still it is showing login. For that I have add cacheable=false from layout file when calling custom block. Also flush cache ...
1
vote
3answers
59 views

I can't tell all clients to clear their browser cache!

recently we have changed few files js/CSS/phtml files on our site as we tested them we experienced strange thing in incognito mode the new CSS and js is working fine but if we switched to normal mode ...
1
vote
1answer
616 views

Magento Nginx: cache first page request only (no session) for super speed

In an effort (and test) to make Magento fly I was playing with microcaching in Magento and came up with the following. The idea is to: detect a first visit and return visit. A return visit may ...
0
votes
1answer
15 views

I am creating custom cache type but its not appearing in Cache Management section magento2

I have created cache.xml inside app/code/Custom/CacheType/etc/cache.xml <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Cache/etc/...
0
votes
0answers
7 views

Leverage browser caching, Amazon Pay Module & Google Recaptcha Module

Is there a way I can cache the following external contents? it is lowering my page score. https://coin.amazonpay.com/cs/uedata (expiration not specified) https://coin.amazonpay.com/rb/checkStatus ...
1
vote
3answers
237 views

Magento 2 Header Sign In Sign Out Issue on Home Page

I'm facing an issue on Magento 2.2 . The details are as under 1.Go to home page 2.Click 'Sign In' from header 3.Enter login credentials to enter customer account 4.Click website logo to go back ...
0
votes
1answer
24 views

M2: flushing cache lets page render one time, then blank white page thereafter

I'm working through Alan Storm's 'No Frills Magento 2 Layout' an internal dev server. He walks the reader through small edit, refresh, another small edit, refresh, see what changes, and so on. There ...
0
votes
1answer
21 views

How to stop run command line after changed in Magento 2?

Can anyone help me how to change the content in Magento without using the command line like php bin/magento cache:clean or php bin/magento cache:flush I always have to run this command after any ...
2
votes
1answer
28 views

Magento add to cart not working after cache

flurys.digifrizz.com is the site. In home page magento add to cart not working after cached. here is the custom_home.xml <?xml version="1.0" encoding="UTF-8"?> <page xmlns:xsi="http://www....
0
votes
2answers
31 views

After Clearing all the cache. I can't able to scroll to top, menu is hiding

Magento 2.2.7 I cleared all the cache. Clicked on system icon on the left side menu. I can't scroll up. but I can able to scroll up after the refreshing page.
0
votes
2answers
25 views

What are the possible ways through which all caches can be disabled?

In one of our project website started loading very slow and I found out all caches were disabled which I have enabled earlier. I can figure out the following ways through which caches can get ...
0
votes
0answers
47 views

Customer name shouldn't display after rebooting the system

Steps to reproduce. login as a user close the tab without logged out restart the system open browser and open magento local see the welcome message ACTUAL RESULTS - Welcome!User name! - Sign in - ...
0
votes
1answer
609 views

Help! Magento XMLHttpRequest cannot load after domain change

I swapped domains in the same server and I made the mistake that at first I put wrong base urls after moving http://domain not http://domain/myfolder and at first I did not clean cache and the var ...
4
votes
1answer
690 views

Hole punching full page cache on magento 2

I'm working in Magento 2 industry as a developer. I'm in a situation that i need to make a hole punching for a specific block. The block contains the reviews got from Trustpilot. I use curl to call ...
1
vote
1answer
1k views

Magento2: Config value cached

when i do return $this->_scopeConfig->getValue("config/user/email", \Magento\Store\Model\ScopeInterface::SCOPE_STORE); Gets the value of the cache and is not correct. How can I make it skip ...
1
vote
1answer
79 views

Images are not loading after upgrade to Magento 2.3.0

We have upgraded magento from 2.2.8 to 2.3.0 Upgrade is done correctly, But product images are not loading in list page and product detail page. Right now the product images are taking like below ...
1
vote
1answer
42 views

how to edit existing terms and conditions

After adding term & condition in magento 2.2.6, I can't find the edit or delete option. Tried to clear cahe, reindex, deploy static but noting working.
2
votes
7answers
3k 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
3answers
620 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 ...
2
votes
1answer
849 views

Magento 2 cache_invalidate loop

I've got a problem on one of our Magento 2.1.6 shops. Sometimes the log fills with hundereds/thousands of cache_invalidate entries. [2017-06-28 14:05:26] main.DEBUG: cache_invalidate: {"method":"...
1
vote
5answers
61 views

How to refresh Magento Cache Management using CMD Prompt?

How to refresh Magento Cache Management using CMD Prompt?
0
votes
1answer
23 views

How to get rid of browser caching issue of javascript file in magento 2

After our magento 2 site is live whenever we are doing changes in JS file it doesn't reflect in customer browser as a result some of the pages breaks for those customer who doesn't flush his browser ...
3
votes
1answer
119 views

Magento2: What exactly is stored in Redis “page and default cache”?

We figured out that we are a bit unsure about what exactly is stored in redis "page and default cache". Until now, we thought it is only about configuration, and maybe some page templates. But today,...
9
votes
8answers
17k views

Refresh the cache programmatically in Magento 2 at window system

I am looking for code that can refresh or flush the Magento2 cache via script. It was so easy in Magento 1.x. I am running Magento2 on WAMP server (window).
2
votes
1answer
126 views

Magento 2 - Use Redis in Full Page Cache

I check similar question but I am unable to find command to add Redis server for full page cache. The command to add Redis for backend cache is following: php bin/magento setup:config:set --cache-...
1
vote
0answers
13 views

Magento 2.3.1 Change store view in controller_action_predispatch event

In my extension, the default storeview is English and I want to set Arabic storeview, only one time when the customer comes first time on my website. I'm using controller_action_predispatch event to ...
6
votes
5answers
972 views

Magento 2 EE : Need to remove one single block from cache

I just need to remove single block phtml from FPC cache. How can I do that without using cacheable = "false". Because cacheable = "false" has an effect on the whole page. I am using a .phtml file in ...
0
votes
0answers
13 views

Magento 2.3 Cache / Clear Fields

In my checkout steps I have created a few custom fields, and after I fill them out complete the checkout process and am back in store and put a new item in cart and proceed to check out, the same ...
0
votes
3answers
749 views

Magento 2 - Page content is not refresh if cache is enabled

I have developed a custom module the retrieve data from database and displayed in a block. The data is updated in database but the page is not showing the latest data if cached is enabled. If the ...
2
votes
1answer
697 views

cache using cacheable=“false” in catalog_product_view.xml not working?

I need your help. I tried so many times to disable product view... I modified the addtocart.phtml and need to uncached to work, (when cache is enabled is not working ok) now i have to left the web ...
1
vote
1answer
752 views

Enable cache for AJAX block

I'm having problems with cacheing a block in Magento 2. The theme I'm using is getting content for the block via an AJAX call. Is it possible and if so, how to cache such a block in M2? Thank you, ...
0
votes
0answers
28 views

Magento 2 cache issues

Fairly new to Magento 2. I recently built one site using a Luma child theme and all went (fairly) well, now on my second site - different host - which is basically a copy of the first one, same exact ...
1
vote
2answers
1k 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.....
0
votes
1answer
706 views

shopping cart is empty while magento cache is enabled

Magento 1.9 shows 'shopping cart is empty' when i add product to cart while default cache enabled. when i turn off the cache, cart is working fine. my session and cookie settings seems to be fine ...
1
vote
2answers
841 views

Magento 2 (Ubuntu) - Thumbnail image caching fails

I'm using Magento 2.1.0 with a bought with a template (SM Sawyer) on Ubuntu 16.04.1 Our products are being inserted/controlled by an external registersystem. After this external source adds products, ...
0
votes
1answer
18 views

Get session form key in javascript m1

In my product review form the form key fetched from core/session is cached and does not pass the validation upon form submission. So, Mage::getSingleton('cor/session')->getFormKey() and $this->...
1
vote
2answers
1k views

Unable to delete Magento 2.0.7 image cache

When I try to Flush catalog images cache I get the following error The file /home/shaffersuiting/public_html/project/pub/media/catalog/product/cache/1/swatch_image/30x20/...
0
votes
2answers
386 views

SyntaxError: missing ) after argument list

I have encountered a weird error, after some time of development and clearing cache I am getting the following error. SyntaxError: missing ) after argument list I have created several modules and ...
5
votes
3answers
79 views

Magento 2 - Categroy, CMS and Product page changes are updating along with Page Cache

I have page cache enabled and it is working fine. In Magento 1.9 when I update anything on website then I have to flush full page cache (Amasty plugin) otherwise changes wont reflect on frontend. ...
2
votes
1answer
29 views

How to Clear cache files for .less

I'm in Production mode. I like to change some styles in my website, so i edited .less for example: app/design/frontend/Templatemonster/theme/web/css/styles-l.less I used "flush Magento cache" from ...
0
votes
3answers
1k views

How to Invalidate Magento 2's Specific Cache using CACHE_TAG

I want to invalidate particular cache tags when admin saves an attribute. How should I do it.
0
votes
2answers
38 views

Permission issue after clone the project Magento2.3.1

I am facing an issue after cloning my project from bitbucket repo on a different server that is having Centos 7. Fatal error: Uncaught Zend_Cache_Exception: cache_dir "/var/www/html/var/...
3
votes
1answer
750 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 ...
0
votes
1answer
51 views

Customer name not appearing and products not showing in mini-cart, Magento 2

I have Magento 2.2.6 version. After signin, customer name is not showing on top dropdown bar, however if I reload the page aur goto another page it then appears. Another issue is that when adding ...
3
votes
2answers
118 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 ...
7
votes
1answer
92 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 ...
0
votes
1answer
786 views

Magento resizing images for cache and making them bigger

I've noticed on our Magento 1.9.3.1 store that when Magento puts product images into cache it's actually making them bigger. I'm not sure where to start debugging this or if there is a fix for it? ...
0
votes
1answer
48 views

Magento1.9 : Few questions about Magento

Can I create a full system backup and expect the site to still be running efficiently ? I know there is an option to not disable the site while backup is in progress, But what will happen if leave the ...