Questions tagged [cache]

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

Filter by
Sorted by
Tagged with
23
votes
4answers
28k views

How to disable the cache for the block in Magento 2?

protected function _construct() { $this->addData( [ 'cache_lifetime' => false, 'cache_tags' => array('MY_BLOCK'), ] ...
9
votes
1answer
9k views

How do disable caching of custom block on product view page?

I have customBlock in product_view. How do disable cache for this?
15
votes
5answers
15k views

Full Page Cache on CE 1.8 - An FPC Magento Module? Varnish? Both?

So I am a bit confused as I go about researching Full Page Caching for Community Edition 1.8. I have already implemented a Two Level Redis Cache, CDN, tuned MySQL's my.cnf for max performance (w/ the ...
31
votes
3answers
36k views

How can I disable cache for particular section or block

I have developed a top bar cart functionality for store front that displays latest three products added to the cart this works great when cache is disabled but when i enable the cache it showing weird ...
33
votes
4answers
31k views

Get original image file from a cache URL

Is there any function that given a cache image product file return the original one? Example : => Cache URL: {BASEURL}/media/catalog/product/cache/2/image/9df78eab33525d08d6e5fb8d27136e95/a/l/IMAGE....
28
votes
6answers
17k views

Clear Theme/CSS Cache in Magento 2

When I am theming a Magento 2 store, what is the suggested way to clean the caches? I edit the .less files and then I currently do rm -rf pub/static/frontend/* var/view_preprocessed/ var/*cache/* ...
18
votes
4answers
3k views

EE 1.14.2 / CE 1.9.2 block caching update has non-unique cache keys - duplicate content showing on frontend

When I upgraded to EE 1.14.2, most things went smoothly but I came across an issue when I started to check my various frontend pages. I have a catalog node with several subcategories and each of those ...
10
votes
8answers
18k 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).
23
votes
4answers
6k views

Live site blank in frontend or keep on loading and never load

I am facing Strangest Problem ever in magento. we are using 1.9.0 version. from last 2 months, our live site is "blank" or "keep on loading" for used browsers. Means in this browser we visited the ...
34
votes
2answers
27k views

Magento Cache - confusion about Varnish, Redis, APC, Memcache

I'm try to improve Magento performances ( soon or later "MageDev" hit this point :) I did some research and I found a lot of good, but not homogeneous, guides. What I got is that: MemCache or ...
23
votes
4answers
25k views

Correct Method of Flushing Caches & Managing the Compiler

I'd like to know if there's any prefered procedure for the following: Flushing of the Magento cache Enabling/Disabling of the Magento Compiler 1. Flushing of the Magento Cache There are a few ...
21
votes
1answer
5k views

Block with Cachable=false not rendered on product view page

I am using magento2-1.0.0-beta4 I have copied the checkout.root block from app/code/Magento/Checkout/view/frontend/layout/checkout_index_index.xml to the product page. Everything is working fine, ...
8
votes
2answers
9k views

Automatically refresh Cache

I would like to refresh all cache at specified intervals, like once a day at midnight (as an example). How can I accomplish this? I'm using CE 1.9.1.
6
votes
3answers
4k views

Why clear pub/static/frontend after css changes in dev mode?

I am working with Magento2 and have a question. I am working in the development mode. But when I do some CSS changes in my theme, why I have to manually clear the pub/static/frontend folder every ...
19
votes
3answers
13k views

Pre-Warming the Magento Enterprise Full Page Cache

The performance benefits of the full page cache in Magento Enterprise are fairly well known. What may not be quite so well known is that for the full benefit of this to be realized, it must be fully ...
5
votes
2answers
1k views

Magento 2 : Menu does not appear on home page

In Magento 2.2.4 CommunityOrEnterprise edition default menu not appear on home page when enabled Varnish Cache. Actually problem is related to Varnish Cache if I set Varnish Cache from Store -> ...
2
votes
2answers
2k views

Exclude caching cusotm module by Magento 2 built in Full page cache(FPC problem)

I am having a strange issue regarding built-in FPC in magento2. I have a custom module, in its index controller, it just renders a phtml file. This phtml file shows some information retrieving it ...
8
votes
2answers
864 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
1answer
167 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 ...
8
votes
2answers
13k views

Magento2 Correct Sequence to flush all Caches/Static files

I'm having a hard time in development with generated classes, pre-processed files and caches in Magento2. In comparisson with Magento1 it seems no longer possible to efficiently develop when ...
22
votes
5answers
25k views

How can I programmatically flush Magento's Cache?

I'm automating release configurations by bootstrapping Mage in several release scripts. At the end of the scripts, I need to flush Magento's cache. Is there a way to flush the cache using one of the ...
17
votes
11answers
32k views

There are no commands defined in the “cache” namespace

Update Everything is working now but There are no commands defined in the "cache" namespace is still there. I tried chmod 777 -R var/generation, didn't fix a thing. AFAIK no module is enabled ...
15
votes
4answers
3k views

CMS block caching issue in EE 1.14.2

I have an issue that seems to be related to the caching of CMS static blocks. I have a cms page and within that page I am rendering a number of cms static blocks. A simplified version of the CMS ...
4
votes
1answer
5k views

Using Magento 2 custom cache in custom module

@Rakesh explains how to add custom cache in Magento 2 here. My question is how to actually work with my custom cache in Magento 2? In Magento 1 you would do something like: $cacheId = 'example_id'; ...
3
votes
1answer
803 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="...
8
votes
1answer
4k views

what it means by Magento cache fast-backend and slow-backend?

What it means by cache backend slow_backend slow_backend_store_data auto_refresh_fast_cache I have see this types of caches config in local.xml.additional file. I want to is know what is meant ...
3
votes
1answer
737 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 ...
3
votes
1answer
1k views

Why static files are not generated or cached in Default or Production mode in Magento 2?

As mentioned in this link: http://devdocs.magento.com/guides/v2.0/config-guide/cli/config-cli-subcommands-static-view.html Static view files deployment is affected by Magento modes as follows: ...
4
votes
4answers
3k views

CMS Block Cache issue with included dynamic template

I've seen lots of issues with CMS block caching in Magento 1.9.2.0 and have an issue where I've created a static block that loads the current category ID and then displays variables that have a ...
3
votes
5answers
3k views

Magento 2 How to change a block to not cacheable

I used the below code to set cacheable to false, but it does not seem to work. How can I change a block to not be cacheable? <?xml version="1.0"?> <layout xmlns:xsi="http://www.w3.org/2001/...
3
votes
2answers
6k 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/...
2
votes
2answers
4k 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 ...
2
votes
1answer
389 views

What is static file materialization in Magento 2 and the difference with static views?

Just had a confusion with some of the concepts in Magento 2. What is static file materialization means in Magento 2 and wanted to know its different with static views ? It will be great if someone ...
2
votes
1answer
14k views

Flushing cache on the back-end does not delete all cache

For testing purposes, I had done some core changes to the following files and they worked fine. /js/varien/configurable.js /app/code/core/Mage/Catalog/Block/Product/View/Options/Abstract.php So ...
1
vote
1answer
164 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
353 views

Customer Session works differenlty with cache

I got one site to fix issues and noticed one very odd issue. Below code is work well in DISABLE cache mode but not in ENABLE mode. If I enable cache then it only works on customer-account (...
1
vote
2answers
3k views

Memcached not being cleared by Magento “Flush Cache Storage”

I have a site that doesn't seem to be flushing memcached when the cache is flushed via the button "Flush Cache Storage". I have to manually log into the daemon by telnet and run flush_all to flush ...
1
vote
1answer
308 views

Refreshed all my Magento2 cache and website is down now

I just used all those functions: Flush Magento Cache Flush Cache Sm Module Flush Catalog Images Cache Flush JavaScript/CSS Cache Flush Static Files Cache And refreshed all my ...
0
votes
1answer
1k views

Public\private content

Refering to this piece of docs: http://devdocs.magento.com/guides/v2.1/config-guide/cache/cache-priv-priv.html, is it possible to put some private content into page which is public and it will not ...
17
votes
5answers
13k views

Speed : Magento with both APC and Memcached

We have studied many forums and don't know the answer to the following. We have both APC and Memcache installed on our servers. We are not sure what the correct and best config is. My question What ...
60
votes
15answers
40k views

How to force flush CSS cache on client side?

Suppose that we changed a lot of functionality for the module (templates, layouts, CSS) and we are going to move these changes to the production site, but a lot of customers have cached CSS in their ...
14
votes
2answers
7k views

Required modifications for using Varnish on Magento CE

I'm struggling to find any good working examples of what modifications are required to allow Varnish to cache a Magento site. Ideally I'd like a list of tasks, such as things to disable/enable and ...
19
votes
5answers
19k views

Magento 2: What is difference between Cache Clean & Cache Flush?

In Magento 2 we have 2 commands php bin/magento cache:flush php bin/magento cache:clean What's the exact difference between them? I'm generally using cache:flush. I never used cache:clean. So, ...
16
votes
3answers
8k views

Static block FPC hole punch

What would be the easiest way to create a FPC hole punch for static block (cms block)? Let's say I have a static block that calls another block inside that has behaviour I want to be dynamic on ...
16
votes
2answers
5k views

Magento Automatic Caching Insight

We are running Magento EE 1.11 with memcache. 2GB per memcahce server, 4GB total. We have about 240k products. Available ram: 6GB Cores: 16 Threads: 32 Here is the deal, more new products are added ...
27
votes
1answer
13k views

Mage_PageCache - External full page cache

So in Community Edition there is an option under System->Configuration->System->External Full Page Cache Settings that appears to be offering a full page cache using Zend Cache. When you set ...
3
votes
1answer
3k views

how to get refreshed shipping address in quote object in js - Magento2.2

I am using this one code but once i update shipping info not getting refreshed info they retrieve old info how can i achieve that? require([ 'jquery', 'Magento_Checkout/js/model/quote', ...
5
votes
2answers
23k views

How do I disable merged CSS and JS

I merged CSS and/or JavaScript and my website is all messed up. How do I disable the CSS/JS merge functions? It's so messed up I can't access the Admin panel, how do I do it in the database?
10
votes
2answers
1k views

How does cache works in magento?

I would like to get more clarity on Magento cache algorithm. I referred https://www.nicksays.co.uk/developers-guide-magento-cache/ http://www.demacmedia.com/magento-commerce/magento-tutorials/...
5
votes
1answer
2k views

Cache blocks that contain form_key (i.e. dynamic content)

I wonder, if there is a best practice to use block caching for blocks that contain a form with the form_key input (CSRF token). I am not talking about full page cache hole punching, but the standard ...