zoukankan      html  css  js  c++  java
  • phpcms 缓存 cookie 分析

    一.phpcms 缓存做一下笔记 以后整理

    1.getcache();

    例如:$sitelist  = getcache('sitelist','commons');

       就是调用caches-》caches_commons->caches_data->sitelist.cache.php

    调用了二个文件。a.global.func.php  作用:实例化cache_factory并调用cache_factory.class.php中的get方法,get方法就是加载缓存文件    b.cache_factory.class.php     c.cache_file.class.php 里面的get函数 核心:$data = @require($filepath.$filename);

    2.global.func.php

    生存缓存:setcache();

    $file_size = file_put_contents($filepath.$filename, $data);

     

    二、cookies分析

    param.class.php  set_cookie($var,$value='',$time=0)         $var变量名,$value变量值,$time=过期时间

    get_cookie($var, $default = '')          $var变量名, $default 默认值  

  • 相关阅读:
    IDEA
    elasticsearch java api
    Java-HttpUtil
    spring集成mybatis-plus
    linux语句速查
    linux切换jdk
    《Java并发编程实战》读书笔记
    设计模式六大原则
    Linux 启动管理
    Linux 日志管理
  • 原文地址:https://www.cnblogs.com/suihui/p/2587520.html
Copyright © 2011-2022 走看看