mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: optional host field
This commit is contained in:
1 file changed
+1
-1
@@ -298,7 +298,7 @@ bus.on('ready', () => Promise.all([
|
|||||||
bus.on('domain/delete-cache', async (domainId: string) => {
|
bus.on('domain/delete-cache', async (domainId: string) => {
|
||||||
const ddoc = await DomainModel.get(domainId);
|
const ddoc = await DomainModel.get(domainId);
|
||||||
if (!ddoc) return;
|
if (!ddoc) return;
|
||||||
for (const host of ddoc.hosts) {
|
for (const host of ddoc.hosts || []) {
|
||||||
cache.delete(`host::${host}`);
|
cache.delete(`host::${host}`);
|
||||||
}
|
}
|
||||||
cache.delete(`id::${domainId}`);
|
cache.delete(`id::${domainId}`);
|
||||||
|
|||||||
Reference in new issue
Block a user