# Node-red-contrib-cache help

**URL:** https://discourse.nodered.org/t/node-red-contrib-cache-help/29940
**Category:** General
**Created:** [12 July 2020 09:58 UTC](https://discourse.nodered.org/t/node-red-contrib-cache-help/29940 "2020-07-12T09:58:07Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![martynwheeler](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/martynwheeler/32/24731_2.png) [@martynwheeler](https://discourse.nodered.org/u/martynwheeler)
#### Post date: [12 July 2020 09:58 UTC](https://discourse.nodered.org/t/node-red-contrib-cache-help/29940/1 "2020-07-12T09:58:07Z")

</div>

Hi,

Is anyone using node-red-contrib-cache with uibuilder. It looks great but I am not sure whether I am doing things the best way.

I have read through the section on the wiki and it says:  
"Simply send the control messages from the uibuilder instance to the input of an infocache node and it will resend all cached messages back to the individual client when the client is ready to deal with them." I have tried this, but this does not seem to trigger anything to happen. I think that I am misunderstanding how it works?

Thanks

---

<div class="post-metadata">

### Author: ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)
#### Post date: [12 July 2020 12:29 UTC](https://discourse.nodered.org/t/node-red-contrib-cache-help/29940/2 "2020-07-12T12:29:35Z")

</div>

`node-red-contrib-cache` is not the same as `node-red-contrib-infocache` that you are referring to from the documentation. (different issue)

What does the `node-red-contrib-cache` node produce in the debug output ?  
Caching in this context means that all the values are going to be set as the initial values.

---

<div class="post-metadata">

### Author: ![martynwheeler](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/martynwheeler/32/24731_2.png) [@martynwheeler](https://discourse.nodered.org/u/martynwheeler)
#### Post date: [12 July 2020 12:36 UTC](https://discourse.nodered.org/t/node-red-contrib-cache-help/29940/3 "2020-07-12T12:36:21Z")

</div>

> [@bakman2](#):
>
> node-red-contrib-cache

Ah, silly me! I did a search for node-red-contrib-infocache and ended up on the page for node-red-contrib-cache. It seems that node-red-contrib-infocache does not exist in npm.

That explains why it does not work as i expected.

---

<div class="post-metadata">

### Author: ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)
#### Post date: [12 July 2020 12:38 UTC](https://discourse.nodered.org/t/node-red-contrib-cache-help/29940/4 "2020-07-12T12:38:14Z")

</div>

Check this post from julian to build a cache without the need of an additional node.

> **[TotallyInformation/node-red-contrib-uibuilder](https://github.com/TotallyInformation/node-red-contrib-uibuilder/wiki/Cache-and-Replay-Messages-without-using-node-red-contrib-infocache)**
>
> Easily create data-driven web UI's for Node-RED using any (or no) front-end library. VueJS and bootstrap-vue included but change as desired. - TotallyInformation/node-red-contrib-uibuilder

---

<div class="post-metadata">

### Author: ![martynwheeler](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/martynwheeler/32/24731_2.png) [@martynwheeler](https://discourse.nodered.org/u/martynwheeler)
#### Post date: [12 July 2020 12:40 UTC](https://discourse.nodered.org/t/node-red-contrib-cache-help/29940/5 "2020-07-12T12:40:00Z")

</div>

I saw that, but figured that node-red-contrib-infocache was the way to go as it was also written by him. I may go back and investigate.

---

<div class="post-metadata">

### Author: ![martynwheeler](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/martynwheeler/32/24731_2.png) [@martynwheeler](https://discourse.nodered.org/u/martynwheeler)
#### Post date: [12 July 2020 13:35 UTC](https://discourse.nodered.org/t/node-red-contrib-cache-help/29940/6 "2020-07-12T13:35:43Z")

</div>

Thanks for the pointer, that is exactly what I wanted to do

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [10 September 2020 13:35 UTC](https://discourse.nodered.org/t/node-red-contrib-cache-help/29940/7 "2020-09-10T13:35:47Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
