轻源码

  • QingYuanMa.com
  • 全球最大的互联网技术和资源下载平台
搜索
一起源码网 门户 ECShop网店 查看主题

ECSHOP实现自动更新缓存教程

发布者: 苯小孩 | 发布时间: 2019-2-25 08:22| 查看数: 4794| 评论数: 1|帖子模式

<div class="content_topp">                   通过本教程可以实现自动更新缓存功能,非常实用。
教程开始:

打开:includes/init.php 在最后添加以下代码:
if (is_temps())
{
    clear_all_files();
    $sql="update ".$ecs->table('shop_config') ."set value=".time()." where code='"."last_clear_time '";
     $db->query($sql);
}
   
function is_temps()
{
<div class="line number10 index9 alt1" style="font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; background-color: rgb(245, 245, 245); line-height: 14.296875px; font-size: 13px; white-space: normal; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-left-radius: 0px !important; background-image: none !important; border: 0px !important; bottom: auto !important; float: none !important; left: auto !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important; box-sizing: content-box !important; min-height: inherit !important;">    if(time()-$_CFG['last_clear_time']

最新评论

黔企汇网络-杨 发表于 2022-7-18 15:43
安卓 开源 播放器

轻源码让程序更轻更快

QingYuanMa.com

工作时间 周一至周六 8:00-17:30

侵权处理

客服QQ点击咨询

关注抖音号

定期抽VIP

Copyright © 2016-2021 https://www.171739.xyz/ 滇ICP备13200218号

快速回复 返回顶部 返回列表