·设为首页收藏本站📧邮箱修改🎁免费下载专区📒收藏夹📱AI全功能
返回列表 发布新帖

请问如何针对Discuz x5.0腾讯EdgeOne如何写规则 New

86 1
发表于 2026-3-23 10:33:08 | 查看全部 阅读模式

马上注册,免费下载更多dz插件网资源。

您需要 登录 才可以下载或查看,没有账号?立即注册

×
请问如何针对Discuz x5.0腾讯EdgeOne如何写规则


现在用默认的后台很多菜单是空白显示


求详细设置教程


我知道答案 回答被采纳将会获得1 贡献 已有1人回答
我要说一句 收起回复

评论1

婷姐Lv.8 发表于 2026-3-23 10:33:51 | 查看全部
不要对 index.php、forum.php 等动态文件进行页面缓存。
       

                                

  • 动态请求(.php、.jsp 等)→ 不缓存,直接回源。
  • 静态资源(图片、CSS、JS、附件)→ 强制缓存,加速访问
                    

                        核心规则:不缓存 PHP 动态文件这条规则需要确保所有动态 PHP 请求都跳过缓存。
       

                                

  • 规则名称:Discuz
  • 匹配条件(IF):

    • 匹配类型:URL 路径
    • 运算符:后缀
    • 值:php

  • 执行操作(THEN):

    • 操作:节点缓存 TTL
    • 行为:不缓存

  • 优先级:设置为最高(数字最小),确保优先匹配。
                    

.ce-block {    margin-bottom: 20px;}.ce-block__content,.ce-toolbar__content {        /* max-width:calc(100% - 50px) */        margin-left: auto;    margin-right: auto;}.ce-paragraph {    line-height: 1.6em;    outline: none;    text-indent: 2em;    font-size: 16px;}.ce-paragraph--right {    text-align: right;}.ce-paragraph--center {    text-align: center;}.ce-paragraph--left {    text-align: left;}.ce-paragraph--justify {    text-align: justify;}.ce-paragraph-text-indent {    text-align: justify;}.ce-paragraph[data-placeholder]:empty::before{  content: attr(data-placeholder);  color: #707684;  font-weight: normal;  opacity: 0;}/** Show placeholder at the first paragraph if Editor is empty */.codex-editor--empty .ce-block:first-child .ce-paragraph[data-placeholder]:empty::before {  opacity: 1;}.codex-editor--toolbox-opened .ce-block:first-child .ce-paragraph[data-placeholder]:empty::before,.codex-editor--empty .ce-block:first-child .ce-paragraph[data-placeholder]:empty:focus::before {  opacity: 0;}.ce-paragraph p:first-of-type{    margin-top: 0;}.ce-paragraph p:last-of-type{    margin-bottom: 0;}.svg-icon {    width: 1em;    height: 1em;}.svg-icon path,.svg-icon polygon,.svg-icon rect {    fill: #4691f6;}.svg-icon circle {    stroke: #4691f6;    stroke-width: 1;}.ce-block {    margin-bottom: 20px;}.ce-block__content,.ce-toolbar__content {        /* max-width:calc(100% - 50px) */        margin-left: auto;    margin-right: auto;}.cdx-list {        margin:0;        outline:none;        display:block;        counter-reset:item;        padding:6px;}.cdx-list__item {        line-height:1.45em;        display:block;        padding-top:8px;        margin-left: 2em;}.cdx-list__item-children {        display:block;}.cdx-list__item [contenteditable] {        outline:none}.cdx-list__item-content {        word-break:break-word;        white-space:pre-wrap;        grid-area:content;        padding-left:8px}.cdx-list__item:before {        counter-increment:item;        white-space:nowrap}.cdx-list-li-container {  display: flex;}.cdx-list-ordered .cdx-list__item:before {        /* content:counters(item,".",numeric) "." */}.cdx-list-ordered {        list-style-type: none;          margin-left: -15px;        counter-reset:item;        font-size: 16px;}.cdx-list-unordered {        font-size: 16px;}.cdx-list-unordered .cdx-list__item:before {        content:"•"}.cdx-list-checklist .cdx-list__item:before {        content:""}.cdx-list__settings .cdx-settings-button {        width:50%}.cdx-list__checkbox {        padding-top:calc((1.45em - 1.2em) / 2);        grid-area:checkbox;        width:1.2em;        height:1.2em;        display:flex;        cursor:pointer;        font-size: 16px;}.cdx-list__checkbox svg {        opacity:0;        height:1.2em;        width:1.2em;        left:-1px;        top:-1px;        position:absolute}@media (hover:hover) {        .cdx-list__checkbox:not(.cdx-list__checkbox--no-hover):hover .cdx-list__checkbox-check svg {        opacity:1}}.cdx-list__checkbox--checked-1 {        line-height:1.45em}@media (hover:hover) {        .cdx-list__checkbox--checked-1:not(.cdx-list__checkbox--checked-1--no-hover):hover .cdx-checklist__checkbox-check {        background:#0059AB;        border-color:#0059AB}}.cdx-list__checkbox--checked-1 .cdx-list__checkbox-check {        background:#369FFF;        border-color:#369FFF}.cdx-list__checkbox--checked-1 .cdx-list__checkbox-check svg {        opacity:1}.cdx-list__checkbox--checked-1 .cdx-list__checkbox-check svg path {        stroke:#fff}.cdx-list__checkbox--checked-1 .cdx-list__checkbox-check:before {        opacity:0;        visibility:visible;        transform:scale(2.5)}.cdx-list__checkbox-check {        cursor:pointer;        display:inline-block;        position:relative;        margin:0 auto;        width:1.2em;        height:1.2em;        box-sizing:border-box;        border-radius:5px;        border:1px solid #C9C9C9;        background:#fff}.cdx-list__checkbox-check:before {        content:"";        position:absolute;        top:0;        right:0;        bottom:0;        left:0;        border-radius:100%;        background-color:#369FFF;        visibility:hidden;        pointer-events:none;        transform:scale(1);        transition:transform .4s ease-out,opacity .4s}.cdx-list__checkbox-check--disabled {        pointer-events:none}.cdx-list-start-with-field {        background:#F8F8F8;        border:1px solid rgba(226,226,229,.2);        border-radius:6px;        padding:2px;        display:grid;        grid-template-columns:auto auto 1fr;        grid-template-rows:auto}.cdx-list-start-with-field--invalid {        background:#FFECED;        border:1px solid #E13F3F}.cdx-list-start-with-field--invalid .cdx-list-start-with-field__input {        color:#e13f3f}.cdx-list-start-with-field__input {        font-size:16px;        outline:none;        font-weight:500;        font-family:inherit;        border:0;        background:transparent;        margin:0;        padding:0;        line-height:22px;        min-width:calc(100% - 10px)}.cdx-list-start-with-field__input::placeholder {        color:#797979;        font-weight:500}.inline-code {  background: rgba(250, 239, 240, 0.78);  color: #b44437;  padding: 3px 4px;  border-radius: 5px;  margin: 0 1px;  font-family: inherit;  font-size: 0.86em;  font-weight: 500;  letter-spacing: 0.3px;}
我要说一句 收起回复
回复 支持 反对

使用道具 举报

回复

 懒得打字嘛,点击右侧快捷回复【查看最新发布】   【应用商城享更多资源】
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

图文热点
关闭

站长推荐上一条 /1 下一条

最新热评 加载中...
AI智能体
投诉/建议联系

discuzaddons@vip.qq.com

未经授权禁止转载,复制和建立镜像,
如有违反,按照公告处理!!!
  • 联系QQ客服
  • 添加微信客服

联系DZ插件网微信客服|最近更新|Archiver|手机版|小黑屋|DZ插件网! ( 鄂ICP备20010621号-1 )|网站地图 知道创宇云防御

您的IP:216.73.216.27, 116.211.128.16,GMT+8, 2026-4-2 09:25 , Processed in 2.041118 second(s), 82 queries , Gzip On, Redis On.

Powered by Discuz! X5.1 Licensed

© 2001-2026 Discuz! Team.

关灯 在本版发帖
扫一扫添加微信客服
QQ客服返回顶部
快速回复 返回顶部 返回列表