memcached   缓存机制,减轻数据库负载。它通过在内存中缓存数据和对象来减少读取数据库的次数,从而提高动态、数据库驱动网站的速度。

array_slice(data['list'],0,10);

array_slice(data['list'],10,20);从缓存机制读取10条数据

基本配置/惯例配置:ThinkPHP\Conf\convention.php  //数据库 URL session

调试配置:             ThinkPHP\Conf\debug.php

函数库:                ThinkPHP\Conf\function.php

Smarty模板:         ThinkPHP\Library\Vendor\Smartystring.class.php:   ThinkPHP\Library\Org\Util\

应用配置:\Application\Home\Conf\config.php

模块配置: Application/当前模块名/Conf/config.php

状态配置:在入口文件中定义:
               define('APP_STATUS','office');
               那么就会自动加载该状态对应的配置文件(位于 Application/Common                   /Conf/office.php )。
               如果我们回家后,我们修改定义为:
               define('APP_STATUS','home');
               那么就会自动加载该状态对应的配置文件(位于 Application/Common/Conf/home.php )

9.30notes的更多相关文章

随机推荐

  1. 377. Combination Sum IV

    问题 Given an integer array with all positive numbers and no duplicates, find the number of possible c ...

  2. 五星评分效果 原生js

    五星评分在很多地方都可以用到,网上也有插件或者相应的代码,在这里我给大家提供一款我自己写的超级简单实用的五星评分代码,连图片都不需要 <!-- 评分start --> <ul> ...

  3. 远程CDN加速不可用,加载本地库

    <script type="text/javascript" src="http://apps.bdimg.com/libs/jquery/2.1.4/jquery ...

  4. C#动态规划查找两个字符串最大子串

     //动态规划查找两个字符串最大子串         public static string lcs(string word1, string word2)         {            ...

  5. 常用的HTML代码

    一.文字1.标题文字 <h#>..........</h#> #=1~6:h1为最大字,h6为最小字 2.字体变化 <font>..........</fon ...

  6. vs使用

    1.控制dll是否生成到本地,如图,右击dll,选择属性,设置复制到本地为true即可

  7. Python 逐行修改txt每条记录的内容

    Txt中保存以些数据,这些数据中我们要逐行read line出来进行处理,约定第一个字符为"#"的数据表示已经处理. 一个办法是读取txt,新增另外一个已完成处理txt来保存完成的 ...

  8. Javascript、Jquery获取浏览器和屏幕各种高度宽度

    Javascript: IE中:document.body.clientWidth ==> BODY对象宽度document.body.clientHeight ==> BODY对象高度d ...

  9. configuration error-could not load file or assembly crystaldecisions.reportappserver.clientdoc

    IIS启动网站后报错: configuration error Could not load file or assembly 'crystaldecisions.reportappserver.cl ...

  10. LinkedHashMap源码阅读笔记(基于jdk1.8)

    LinkedHashMap是HashMap的子类,很多地方都是直接引用HashMap中的方法,所以需要注意的地方并不多.关键的点就是几个重写的方法: 1.Entry是继承与Node类,也就是Linke ...