Questions tagged [cache]

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

331 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6
votes
5answers
1k 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 ...
5
votes
0answers
435 views

How to create custom cache and store/get something in Magento 2

I want to store any dummy data in custom cache and get that data in my own custom cache. I have followed this link but not telling much explanation.
5
votes
0answers
610 views

Template block has not been whitelisted error

I have a site with a CMS page using the 'core/template' block, and getting an error Security problem: core/template has not been whitelisted - even though the 'core/template' is clearly listed in the ...
5
votes
0answers
543 views

All product images need to be defined in view.xml?

In Magento 2, the image sizes are defined in theme's view.xml file, e.g. in Luma theme: /app/design/frontend/Magento/luma/etc/view.xml: <image id="category_page_grid" type="small_image"> &...
4
votes
0answers
47 views

Magento 2.3 error after cache flush or clean

Every time I flush or clean Magento cache I get the following error on front and backend: Exception: Notice: Undefined variable: _ENV in /home/jacstoreonline/public_html/magento/vendor/magento/...
4
votes
1answer
56 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. ...
4
votes
1answer
360 views

How to disable cache for perticular template file in magento 1.9?

We have used full page cache but some particular part of section not reflected. for example, we have a select city in the dropdown but not reflected. check my site- https://vidyutbazar.com/ A ...
4
votes
1answer
432 views

Load Page Without Cache, Without Flushing The Cache in Magento 2

I am just curious to know if we can execute the page without cache, without flushing the actual cache like other framework do eg : in Symfony if we add /app_dev.php in URL, it load the respective ...
4
votes
1answer
719 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 ...
4
votes
2answers
1k views

Magento show wrong image when products doesn't have one

I have a problem with products with no image. I have set the Product Image Placeholders in the backend at System > Configurations > Catalog > Product Image Placeholders It works well with the ...
4
votes
2answers
32 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?
3
votes
1answer
145 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,...
3
votes
0answers
50 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 ...
3
votes
0answers
304 views

Magento 2: Disable cache for price block

I want to disable the cache of the price block in detail page. However, I cannot find a place to modify it. I try to add cacheable="false" in module-catalog\view\base\layout\catalog_product_prices....
3
votes
4answers
2k views

CSS file not updating

I have a jay.css file in directory /public_html/skin/frontend/neighborhood/default/css but Magento is not recognizing the file changes. I have cloudflare and cleared the cache but it still doesn't ...
3
votes
0answers
94 views

Magento page does not load because cookie conflict

I have exact this problem: Maximum execution time exceeded. Clearing cookies only solution Sometimes and with some users the page does not load, and shows random errors with "Fatal error: ...
3
votes
0answers
192 views

Full Page Cache - Hole punch for timestamp

Many of my templates require a timestamp (for timers), when implementing full page cache (using nitrogento) the timestamp gets cached too which ends up showing wrong timestamp. What methods can I ...
3
votes
1answer
752 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 ...
2
votes
0answers
26 views

Detect old cache images in Magento 2

Due to some mistake we ended up in cached thumbnail images for old versions of our images in Magento 2.2.8 shop. How can we detect those images? Is there a build in function for this? We want to ...
2
votes
0answers
31 views

Magento 2 Custom cache for top menu

I want to create custom cache for top menu For this I have created cache.xml <?xml version="1.0" ?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
2
votes
0answers
56 views

Magento2 - Indexing / Full page cache problems

We are having long-term problems with indexer and cache settings. After reading great guide by @johnhughes1984 about caching and indexing we thought that everything will be alright with settings ...
2
votes
0answers
31 views

Magento 1.14.4.0: Programmatically clear cache of individual product

I need to clear the cache for individual product. For example, If admin change any detail/price/qty of product. I need to run script that clear the cache for that particular product only. I am running ...
2
votes
0answers
27 views

Cache problem old images - Magento 1.9

In logs i found this media/catalog/product/cache/1/thumbnail/800x800/9df78eab33525d08d6e5fb8d27136e95 /p/a/_lindt_2132.jpg it's an old image. I checked in: var/cache the cache is deleted and ...
2
votes
3answers
197 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/...
2
votes
0answers
53 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
31 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 ...
2
votes
0answers
27 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 ...
2
votes
0answers
348 views

No TTL for LAYOUT Cache

I noticed that Magento Layout module does not provide TTL when saves to cache, so the keys in Redis are not expired. Example: vendor/magento/framework/View/Layout.php: $this->cache->save($this-...
2
votes
0answers
143 views

Error When i Re Enable Cache in Magento 2.2.5

i Have Disabled The cache of magento before editing my store and when i try to re enable the all cache and try to visit my store i'm getting this error : "There has been an error processing your ...
2
votes
0answers
147 views

Strange (browser) caching issue in cart

We had a third party build our initial website and I am in the process of 'fixing' things that were not done as well as we might have liked. One such issue was the manner they used to handle pages ...
2
votes
0answers
42 views

Cache System and Cookie reading Magento 1.9

In the header.phtml I have a DIV which gets visible only when a cookie is NOT set in the browser. <?php if (Mage::getModel('core/cookie')->get('cookiex') == '') { ?> <div></div&...
2
votes
1answer
91 views

without cacheable false in layout magento2

Get quote data from block without cacheable="false". Marketplace doesn't accept cacheable="false" in layout. It throws the varnish problem. How can resolve without cacheable="false". Quote subtotal ...
2
votes
1answer
59 views

how to create not cacheable helper method?

We have written logic to find client IP address in the custom helper. public function getIpAddress(){ .............. return $ip; } It works only at first hit after that it only displays the old ...
2
votes
0answers
342 views

Disable cache of static block Magento 1.9

How can I disable a widget or static block from being cached inside the Blocks HTML output cache? The widget loads a specific static block on all CMS pages. Inside the static block, I load a template ...
2
votes
1answer
396 views

Prevent child block from cache (cacheable false) but not parent block (cacheable true) in magento 2.2.2

I am working on a custom module template where I need to show some random string only in some part of a page and string should be generate randomly on every time page reload also the rest of the ...
2
votes
0answers
170 views

problem getting current url when cache is turned on

Summary This problem is affecting my Venus Theme Mega Menu module. When caching is turned on the menu no longer shows correct .active classes for the current page. I'm looking in the module code ...
2
votes
0answers
168 views

Cached Images not shown in Product Image (CDN at AWS S3)

I am stuck here. As i am using S3 bucket and S3FS-FUSE for syncing my /media folder with S3 bucket with rsync (cronjob). As rsync is very slow in syncing cached images with S3, thus it results in ...
2
votes
1answer
134 views

Fastly CDN not refresh custom page

We have Fastly CDN configured in Website, and we have a custom page where we are displaying product listing. When admin makes changes in the product, it's reflecting correctly in front-end product ...
2
votes
0answers
326 views

Display dynamic Content in Magento Static Block

I have declared a static block in Magento 1.9.3.2 named 'subcategory_listing' that has the following code: {{block type="subcategory/listing" name="subcategory.listing" template="category/...
2
votes
0answers
491 views

Refresh cached product images programmatically

After flushing image cache, cached product images are rebuild when they are loaded from frontend like from product view page ... I need them restored w/o vistit every page manuall, so how to this in ...
2
votes
1answer
928 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":"...
2
votes
1answer
707 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 ...
2
votes
1answer
627 views

Magento Site Layout Breaks Once a Day - Emptying Var/Cache Fixes

One of my client's websites on Magento 1.9.2.3 has been experiencing a strange error once every day (at random times). Where the site is loaded without any graphical styling no images, no CSS, ...
2
votes
0answers
419 views

Problem with product image cache after upgrade

I'm new to Magento. I have just upgraded from 1.8.1.0 to 1.9.3.2. Something with the product image cache is not working. On my checkout page I get a long list of 404 Not Found errors for cached ...
2
votes
0answers
182 views

Redis Cluster Gives Error in Magento-2

I have implemented Redis cluster in my local machine with three masters and three slaves. I did all the required configuration in my app/etc/env.php file and when I am accessing the project url, it ...
2
votes
0answers
27 views

Magento 1.9 - how to set rules to invalidate old “version numbers” for the cache’s store on the client’s local computers

I have been suffered from users on my website couldn't see the update because of cache. On searching on Google, most of posts are noted like just flushing cache on back-end site and via FTP. Btw even ...
2
votes
0answers
136 views

Currency Selector not reflecting changed currency in footer due to magento cache

I have two currency selector in my magento store one in header and other in footer. When magento cache Blocks HTML output is disabled then both currency selector reflecting correct currency on ...
2
votes
0answers
307 views

Image base name file or image in cache? what is the best method of use images for SEO purpose and copyright (with watermark) protection?

In these months I'm working on a Magento CMS for the first time (version 1.9.2.1). I came across a problem due to image bulk rename. The thing that was asked to me is to optimize image file for a good ...
2
votes
0answers
43 views

Magento 2 ,category and flush magento cache error

magento 2.0.2 there are an error when doing flush magento cache and we found out when the products in one of the category ,all operation around the product will error, we cant deselect that cateogry ...
2
votes
0answers
163 views

Why Mage_CatalogIndex_Model_Aggregation is not caching layered navigation filters?

A question for an expert. Make sure you read the preamble - the question is at the bottom. In app/code/core/Mage/Catalog/Model/Layer/Filter/Attribute.php I noticed a functionality to cache ...