摘要: 相关文档: 配置多个Sitecore实例 实例结构: 有两个 Sitecore 实例:Instance1 和 Instance2,分别管理各自的 Content,在 Publishing 的时候调用 Shared Instance(共享Sitecore实例)来作对应的 Solr 索引构建,最后相关的 阅读全文
posted @ 2023-11-09 10:02 灵火 阅读(10) 评论(0) 推荐(0) 编辑
摘要: IIS 优化 1. 设置 AlwaysRunninng 前往应用池选中对应的站点,点击高级设置,在 Start Mode 那列选中 AlwaysRunning,最后保存。 2. 设置 Preload Enabled 为 True 在站点列选中你的站点,点击高级设置,将 Preload Enabled 阅读全文
posted @ 2023-11-06 15:19 灵火 阅读(30) 评论(1) 推荐(1) 编辑
摘要: 可用于键名匹配规则上。 using System.Text.RegularExpressions; var arr = new[] { "EmailAddress", "BackgroundImage", "EmailAddress1", "EmailAddress21 1", "EmailAddr 阅读全文
posted @ 2023-10-26 22:42 灵火 阅读(34) 评论(1) 推荐(1) 编辑
摘要: using System.Reflection; string value = "100"; var counter = new Counter(); foreach (var propertyInfo in counter.GetType().GetProperties(BindingFlags. 阅读全文
posted @ 2023-10-26 22:38 灵火 阅读(19) 评论(1) 推荐(0) 编辑
摘要: // useProxy.js const useProxy = () => { const env_arr = ['document', 'window','navigator', 'localStorage'] const env = {} env_arr.forEach((value, inde 阅读全文
posted @ 2023-10-24 22:54 灵火 阅读(18) 评论(0) 推荐(1) 编辑
摘要: 以centos7为例: 下载并安装 centos7 1. 下载镜像并运行容器 docker run --name docker-centos7 --privileged --publish 522:22 --interactive --detach centos:7 /usr/sbin/init 2 阅读全文
posted @ 2023-10-22 21:21 灵火 阅读(190) 评论(0) 推荐(0) 编辑
摘要:  Sitecore 里删除 Item 报错 Could not create SSL/TLS secure channel. 解决方法: 前往 mmc 里添加你的域名 win + r 输入 mmc 打开下图面板; 阅读全文
posted @ 2023-10-20 12:18 灵火 阅读(9) 评论(0) 推荐(0) 编辑
摘要: 安装 Scoop scoop 官网:https://scoop.sh/ 使用管理员打开 powershell,写入以下命令进行安装 Set-ExecutionPolicy RemoteSigned -Scope CurrentUser # 直接安装 irm get.scoop.sh | iex # 阅读全文
posted @ 2023-10-08 17:20 灵火 阅读(140) 评论(0) 推荐(1) 编辑
摘要: 在学校时的代码,网站的数据格式变了,跑不了,就改了下。 有意思的是:vue 将 data 存在了 HTMLElement object 上的 _value property 上,页面上看到的 text 发生改变,但是 HTML 里元素值不会发生改变。 import requests from bs4 阅读全文
posted @ 2023-10-08 00:07 灵火 阅读(31) 评论(0) 推荐(0) 编辑
摘要: unplugin-auto-import 官网:https://github.com/unplugin/unplugin-auto-import 安装 pnpm add -D unplugin-auto-import 使用 // ~/vite.onfig.ts import AutoImport f 阅读全文
posted @ 2023-10-04 00:16 灵火 阅读(184) 评论(0) 推荐(0) 编辑