Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [cache]

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

0
votes
1answer
17 views

CSS not reflecting after modifications

I'm new to Magento 2 I have an edited CSS file somewhere in app/design/frontend//web/css/, then I run the deploy static content command. I can see the new CSS file is already in pub/static/ folder. ...
1
vote
0answers
30 views

Magento 1: Add custom attribute in transactional e-mail

In transactional mail, I need to add a custom attribute. I modified the below files app/design/frontend/base/default/template/email/order/items/order/default.phtml app/design/frontend/base/default/...
4
votes
1answer
28 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. ...
0
votes
0answers
21 views

Why cacheable=“false” is not recommended on marketplace?

I have developed a custom module, If my cache enables dynamic data pages are not on updating every request so I have added cacheable="false" now everything is working perfectly. XML file : view/...
0
votes
2answers
25 views

How to stop magento to generate all types of images in cache on page visit

I'm using Magento 2.2.5 and when we visit listing or product page Magento creates the various sizes of images in pub/media/catalog/product/cache/ directory which I don't need except some. I have ...
0
votes
1answer
30 views

Varnish cache not clearing from magento admin

M2 Version : 2.2.2 PHP : version : 7.1.26 Varnish version : 6.0.2 Server : Nginx I have configure varnish in my magento website it working well i have checked in frontend and and passed all ...
1
vote
1answer
59 views

What is the use of Magento 2.2.6 product image cache?

I have some points regarding the Product Image Cache to discuss with you. I have created a product from the Magento admin panel. After creating the product, I have uploaded two of the product ...
0
votes
0answers
11 views

Passing data as Javascript variables without caching

I've made some modifications to Magento's swatches via a custom module to display out of stock options on the product page (as non-selectable deactivated swatches, so the user will know that the ...
0
votes
2answers
45 views

Magento 2 - Missing enable / disable cache options in Admin

In Magento 2,I can't enable/disable cache In System -> Cache Management, the two options are missing from the dropdown menu. what did wrong? It's in Default mode. Anyone has idea on this?
1
vote
1answer
22 views

Cookie based conditional issues

I want to show a popup phtml based on wether a cookie has been set or not in my block class. The logic is roughly: class Popup extends \Magento\Framework\View\Element\Template { public function ...
0
votes
0answers
9 views

Magento 1.9: Hole Punch caching for bundle product (Select Option)

I need create hole punch for Bundle product options. Whenever any bundle item stock becomes out of stock, Admin needs to clean cache every time to get the reflection. I have tried by following code ...
0
votes
0answers
99 views

Magento 2.3.0 product image cache not created when resizing images

I have an issue with Magento 2.3.0 not resizing images from view.xml file in custom theme. My view.xml: <view xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="...
0
votes
2answers
44 views

Magento 2.3.0 does not change the language

I hope you can help me because no solution I find on the internet works. Change the user's language to Spanish And in the local configuration also to Spanish. Clean cache but I can not get it to be ...
0
votes
0answers
19 views

Magento 1.9.3.8 Redis version

I am using Magento 1.9.3.8 with Redis 3.0.6 as backend cache and also my FPC extension is using it for storing files. I am wondering if Magento is still working with latest Redis 5? I can't find ...
0
votes
0answers
8 views

Product Details Page Displaying Blank Invalide Cache Type magento 2

main.DEBUG: cache_invalidate: {"method":"GET","url":"url/admin/cache/index/key/7f0570c5083f7252e95eddbf527ae6fbcd46363a1d0870ba82442c817dc83ab4/","invalidateInfo":{"tags":["interception","CONFIG"],"...
0
votes
0answers
17 views

magento category page not displaying after flush magento cache

I am using magento 1.9, I have customized theme, I did flush magento cache and all my product stop showing. If i change the theme name in magento category it start showing again. What is the reason ...
0
votes
0answers
31 views

Magento 2 how to set permission in production mode

any one help me in this please, Iam using Magento 2.1.9 version I have successfully completed all issues in developer mode, and now I moved to production mode, every thing is working fine but when I ...
0
votes
2answers
27 views

Magento 2 Remove Page Cache in Home Page

I don't want cache to happen with home page but need them for all other pages. I am new to Magento and on going through I found that cacheable="false" in block will ignore cache in that page. How ...
0
votes
0answers
16 views

Magento 2 How to clear cache for home page

I dont want cache to be done for home page alone but for other cms_page_view. How can I do it.
0
votes
1answer
16 views

Magento 2 Second time loading not going to observer controller_action_predispatch with cms_page_view

I have created a observer controller_action_predispatch and did an echo its triggering on all page view but with Second time loading its not triggering on cms_page_view for all other pages it ...
0
votes
1answer
23 views

Custom section is ignored on Magento 2

I am trying to create a custom section with private content to not cached. I follow this article: https://webkul.com/blog/sections-magento-2/ I did the first two steps: di.xml <?xml version="1....
2
votes
3answers
174 views

What could cause this (config) cache issue after upgrading from 2.1.14 to 2.1.15?

after upgrading a shop from 2.1.14 to 2.1.15 I'm getting the following exception when visiting any page via the browser: 1 exception(s): Exception #0 (Exception): Notice: Undefined index: in /src/...
0
votes
2answers
39 views

CSS are compiled but not called in frontend

I added css on my website. One is bootstrap and one is a custom css. I addedd it on my Magento_Theme folder (inside layout/default_head_block.xml) <css src="css/bootstrap/css/bootstrap.css" order="...
0
votes
1answer
37 views

Magento 2 controller_action_predispatch observer not working as expected

I have created a Observer controller_action_predispatch which triggers in all page. Some thing happens strange with this When I clear all cache and login for the first time the observer triggers in ...
0
votes
0answers
14 views

Admin cache page error in magento2

I am trying to access the admin page but, I got the error like below, Fatal error: Uncaught Error: Call to a member function setActive() on boolean in /var/www/html/vendor/magento/module-backend/...
0
votes
1answer
26 views

Magento 2 - Clear cache in 3 Servers programatically?

I am in a project which uses 3 servers to serve a Magento 2 site. I have written a code to clear cache and re-indexing. But for certain reasons the cache flush has to happen in all the three servers. ...
0
votes
0answers
29 views

Disable Cache for particular Module or plugin

I have a module that is working fine on fresh load but then it caching some js files that are generated by CDN.How can i prevent this module from caching files.Module including files dynamically so I ...
1
vote
2answers
120 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 ...
0
votes
1answer
26 views

Database Changes Don't Reflect in Frontend

I have a module that allows the user (so far) to add and remove a bike from their garage. I built my controllers (triggered via an AJAX call) and they seem to work alright. The only problem is, ...
0
votes
0answers
43 views

Magento 2.2.x cache disabled automatically

First of all, I couldn't find any info about this kind of issue anywhere on the web. We have a production environment with git integration. We pull our changes to it only via git (git pull). The ...
1
vote
2answers
88 views

/app/etc/local.xml not working for me?

I have a client's website in magento 1.9.2.0. Am trying to edit database details and admin custom url in app/etc/local.xml but no changes reflecting. when I do research for this, they asking for ...
0
votes
0answers
63 views

Magento2: How to disable product image cache url?

I want to disable product cache URL. How to get product image URL directly into the path.
1
vote
1answer
39 views

magento 2 - Access denied for user - cache problem

1 exception(s): Exception #0 (Exception): Warning: mysqli_connect(): (HY000/1045): Access denied for user 'aromacak_db30'@'localhost' (using password: YES) in /home/aromacakes/test.aromacakes.online/...
0
votes
1answer
69 views

Magento 2 - Disable caching of prices on category view

I have a Magento 2.2.4 store where prices are automatically updated every 10 minutes from an stock management system. This works fine on product pages and any custom 'featured products' sections etc, ...
0
votes
0answers
36 views

how to disable cache for the plugin in magento 2

I want to disable cache in plugin. eg(cacheable="false"). How to apply cacheable="false" in plugin. I am try this code in plugin file. $types = array('block_html', 'full_page'); foreach ($types as $...
2
votes
0answers
25 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,...
1
vote
0answers
24 views

Change image cache directory

Is there a way to change the directory that M2 uses as image cache to something other than /pub/media/catalog/product/cache ? I'm using Magento 2.2.3 at the moment.
2
votes
0answers
28 views

Custom plugin files updated code is not showing in admin panel though cache is cleared

I have created a custom module. Controller files are working fine. I am trying to update my module MySQL version and adding new fields to the module in block folder files but they are not applying in ...
0
votes
1answer
39 views

Magento 1.9.x after refresh cache, site not working

After refresh cache on admin page, site not working. Just show this message. Warning: simplexml_load_string(): Entity: line 1: parser error : Start tag expected, '<' not found in /home/...
0
votes
0answers
42 views

Update programmatically config content text/x-magento-init script inside of phtml template

For a requirement I had to override the config of the configurable.js script that is initialised inside configurable.phtml, this one specifically: <script type="text/x-magento-init"> { ...
0
votes
0answers
21 views

magento 2 button disable for review listing page not working

I have created 2 buttons in the review listing page in a custom module.on click, the button gets disabled after saving value using ajax request. when I reload the page, this becomes clickable with the ...
0
votes
2answers
85 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
0answers
75 views

Redis session configuration breaks web setup page

I have an issue when it comes to using Redis as session cache. If I use Redis for session caching, I lose the ability to go /setup page. When I remove Redis related code, the page loads just fine. I'...
3
votes
1answer
149 views

Magento2 : Will cacheable = “false” invalidate cache in varnish cache?

I have store in Magento2 and planning to integrate varnish cache. Want to confirm if there is an issue with cacheable="false".
2
votes
0answers
16 views

M1: How to invalidate the fpc manually for a product page?

I need to investigate an issue around full page cache (fpc) in M1, because we sometimes receive 404 errors on product pages when the cache is invalidated - and no 404 pages anymore after the cache has ...
1
vote
2answers
58 views

Magento 1.9.3.2 - Exception printing is disabled by default for security reasons

I have just moved a Magento install from one server to another and now when I try to access the frontend I get the "Exception printing is disabled by default for security reasons" error. I have ...
0
votes
0answers
20 views

Magento 2 Remove redis cache after not update

I'm using Magento 2.2.6 When i remove Redis after everything not update(like upload new product not update etc..), My step 1.sudo yum remove redis 2.i have edit env.php already but can't still . ...
0
votes
0answers
88 views

Cache a product collection by a key?

I have added a collection to buff out related products with extra "most viewed" products from a products top level category. This is a slow query and takes about 0.2 seconds so was wondering if this ...
0
votes
0answers
35 views

Refresh Cache via JSON API

When there are changes to prices and/or currencies, the cache in Magento needs to be refreshed (there are also other times, but that is my current focus). The changes are sent via the JSON API, and ...
0
votes
2answers
49 views

Cannot access site to admin after disabling cache

I was attempting to install a Google Captcha extension from MageComp. In the install instructions it said: " It’s required to disable cache in the administration panel of your site. Go to System/...