下载Smarty压缩包并解压,复制其中的libs文件夹到我们的PHP工程目录下(可将其改名为smarty)。同时,在工程目录下新建三个文件夹,分别取名为templates、templates_c和smarty_cache。配置文件smarty_inc.php 1 caching=false; //是...
分类:
其他好文 时间:
2015-01-12 23:59:10
阅读次数:
480
安装运行squid后用命令squidclient-t1-hlocalhost-p80mgr:info查看命中率情况RequestHitRatios:5min:99.6%,60min:98.7%CacheRequest命中率ByteHitRatios:5min:100.0%,60min:100.0%CacheByte命中率如果命中率低则1apache中的模块mod_expires是否打开2调整squid中的参数#cache_me..
分类:
其他好文 时间:
2015-01-12 19:34:18
阅读次数:
202
一,nginx反向代理配置
#tomcat
Java代码
upstream tomcat_server{
server 127.0.0.1:8080;
}
erver{
listen 80;
server_name www.wolfdream.com;
lo...
分类:
Web程序 时间:
2015-01-12 19:18:43
阅读次数:
408
package com.test.testCache;import java.util.Map;import org.json.JSONArray;import org.json.JSONException;import android.content.Context;import android....
分类:
系统相关 时间:
2015-01-12 17:30:53
阅读次数:
452
初级篇:(单机模式)
假设配置:(Dual core 2.0GHz,4GB ram,SSD)
基础框架:apache(PHP)
+ Mysql / IIS + MSSQL
(最基础框架,处理一般访问请求)
进阶1:替换Apache为Nginx,并在数据库前加上cache层【数据库的速度是最大的瓶颈】
Nginx(PHP) + Memcache + Mysql
(此时已经...
分类:
其他好文 时间:
2015-01-12 16:31:37
阅读次数:
207
step1:在coding上面创建一个项目myboke
step2:在git 命令台中进入项目的根目录下面,使用git init创建.git文件夹和.gitigonre文件,帮组本地与远程的链接
step3:使用git pull 同步项目上面的文件
step4: git add * 添加项目下面的所有文件
step5: git commit -m ‘备注’ 将文件添加在cache中并添加备...
分类:
Web程序 时间:
2015-01-12 09:30:07
阅读次数:
217
js代码
function show(fileId){
$.ajax({
url:'http://localhost:80/show',
dataType:'jsonp',
data:{
'fileId':fileId
},
cache:false,
jsonp:'c...
分类:
Web程序 时间:
2015-01-12 09:19:05
阅读次数:
249
(一)、CPU Memory 结构CPU提速主要依靠局部性原理,即时间局部性和空间局部性。我们先看一下CPU的内存结构:Data Access先复习一下数据在这几级存储中的传输。作为数据transfer的基本单位,cache line的典型大小为8*8(8个变量,每个8bytes)=64bytes. 当一个cache想要load数据到寄存器时,检查cache中的line,如果hit了就get到数据...
分类:
其他好文 时间:
2015-01-12 00:27:23
阅读次数:
443