Skip to content

Commit 0a66c7d

Browse files
committed
Update Redis and Generator cache actions
1 parent 4782f9e commit 0a66c7d

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

console.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ let loads = {
160160
};
161161

162162
let instructions = grid.set(11, 0, 1, 12, contrib.markdown, {
163-
markdown: '**^G** Manual GC\t**^V** Rebuild views\t**^R** Empty Redis List Cache\n**^Q** Quit\t\t **^C** Clear log\t\t**^L** Empty Generator List Cache'
163+
markdown: '**^G** Manual GC\t**^V** Rebuild views\t**^R** Empty Redis Cache\n**^Q** Quit\t\t **^C** Clear log\t\t**^L** Empty Generator Cache'
164164
});
165165

166166
const updateDonut = () => {
@@ -204,7 +204,7 @@ screen.key(['C-g'], (ch, key) => {
204204
});
205205

206206
screen.key(['C-r'], (ch, key) => {
207-
logger('Emptying Redis List Cache');
207+
logger('Emptying Redis Cache');
208208
redis.keys("*", (err, lists) => {
209209
lists
210210
.filter(item => item.match(/(list\:|snippet\:)/) !== null)
@@ -213,12 +213,12 @@ screen.key(['C-r'], (ch, key) => {
213213
});
214214

215215
screen.key(['C-l'], (ch, key) => {
216-
logger('Emptying Generator List Cache');
217-
Generators.basic.forEach(gen => gen.emptyListCache());
218-
Generators.standard.forEach(gen => gen.emptyListCache());
219-
Generators.premium.forEach(gen => gen.emptyListCache());
220-
Generators.realtime.forEach(gen => gen.emptyListCache());
221-
Generators.demo.forEach(gen => gen.emptyListCache());
216+
logger('Emptying Generator Cache');
217+
Generators.basic.forEach(gen => gen.emptyListCache() && gen.emptySnippetCache());
218+
Generators.standard.forEach(gen => gen.emptyListCache() && gen.emptySnippetCache());
219+
Generators.premium.forEach(gen => gen.emptyListCache() && gen.emptySnippetCache());
220+
Generators.realtime.forEach(gen => gen.emptyListCache() && gen.emptySnippetCache());
221+
Generators.demo.forEach(gen => gen.emptyListCache() && gen.emptySnippetCache());
222222
});
223223

224224
screen.key(['C-v'], (ch, key) => {

0 commit comments

Comments
 (0)