Questions tagged [cache]

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

397 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6
votes
1answer
493 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.
6
votes
0answers
638 views

Magento : 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 ...
6
votes
5answers
3k 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
1answer
501 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 ...
5
votes
1answer
678 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 ...
5
votes
0answers
691 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
114 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
81 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
0answers
82 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 ...
4
votes
2answers
2k 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
1answer
761 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 ...
4
votes
2answers
34 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
0answers
28 views

Product page images cache generation issue after Magento upgrade

Product page images are showing thumbnails instead of product images. On the same page related products images are showing fine. Only products images are having issues. The image url is accessible but ...
3
votes
0answers
37 views

How to retain exact Product Image Quality

I have modified view.xml to increase the Large image dimensions. <image id="product_page_image_large" type="image"/> <image id="product_page_image_medium" type="image"> ...
3
votes
0answers
44 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 ...
3
votes
0answers
96 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 ...
3
votes
0answers
101 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 ...
3
votes
0answers
719 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-...
3
votes
0answers
219 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 ...
3
votes
0answers
560 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
0answers
191 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 ...
3
votes
4answers
3k 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
106 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
2k views

Leverage browser caching having Varnish installed

Magento is running on 1.9.x, and web server is Nginx having Varnish installed on it using Turpentine plugin. Site speed is very fine when running from any browser due to Varnish cache but page speed ...
3
votes
0answers
200 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 ...
2
votes
1answer
27 views

How change Magento2 config cache behavior

In my project with 100's of websites in multi-store mode, several seconds on every request are used to unserialize the config cache. It appears that Magento builds and compiles the config-cache from ...
2
votes
0answers
51 views

How to cache a product collection in Magento 2?

Currently i load a product collection under certain categories, for example: $collection->addCategoriesFilter(array('in' => array('2','4'))); $collection ->addMinimalPrice() ...
2
votes
2answers
153 views

Varnish cache is purged on every order

Each time I place an order in my Magento 2.3.3 installation all category pages are purged. I found these messages in the debug.log but I can't find what is causing this. Or could this be the default ...
2
votes
0answers
256 views

Magento 2 Intermittent Cache Issue - Showing a JSON code Instead of Homepage

We have a multi store running with Magento 2 and sometimes when we try to load the homepage it shows the JSON below instead of the home page, it only works again if we clean cache. Strange enough is ...
2
votes
1answer
187 views

How to disable Compiled Configuration?

I was trying to disable all my caches, then I noticed that one of my Magento 2 installations has a particular cache type called Compiled Config. I don't want to use my installation compiled, I wan't ...
2
votes
3answers
194 views

How embedded CSS in transactional email works?

I have a very frustrating issue with the Magento 2 sales order emails. Through experimentation, I worked out the locations of the many files that are used to comprise these emails. At some point, I ...
2
votes
0answers
282 views

Magento 2: Difference between flush catalog images cache and manually deleting files

Is there a difference between using the Flush Catalog Images Cache button in admin and removing the files in pub/media/catalog/product/cache via command line?
2
votes
3answers
3k views

Magento 2.3.2 wrong image cache path

Magento 2.3.2 upgrade after 2.2.6 having issue on product page. Images aren't appearing on product pages. The path coming is 404 /catalog/product/cache/50dd8aa5084eb9449e88d424223230cd/image/...
2
votes
0answers
280 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 ...
2
votes
0answers
150 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
76 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
3answers
225 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
69 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
36 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
35 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
205 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
191 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
68 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
102 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
77 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
453 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
0answers
282 views

Magento 2 cookie is not set on homepage

I'm trying to set a new cookie the same way the store cookie is set. I use the following plugin: <type name="Magento\Framework\App\FrontController"> <plugin name="homepage_plugin" ...
2
votes
1answer
545 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
227 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
290 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 ...

1
2 3 4 5
8