佳礼资讯网

 找回密码
 注册

ADVERTISEMENT

查看: 885|回复: 3

PHP Cache

[复制链接]
发表于 21-1-2007 07:14 PM | 显示全部楼层 |阅读模式
请问有谁知道PHP怎样用Data Cache?

例如我把常用的资料Cache起来,
所以用户多时,不用每次去Read Database的资料。

急着用到,谢谢!
回复

使用道具 举报


ADVERTISEMENT

发表于 21-1-2007 10:39 PM | 显示全部楼层
Hi WuSheng,

Cache can created by own logic, using PHP PEAR cache lite, etc.  Cache is fast, and devil.  

I recommend you to have a book called PHP 5 Power Programming, this book covers the performance issues and tips in enhancing PHP overall;

Covering topics in PHP for enhancement include:

SQL Cache; using SQL lite - depends on SQL query; most probably join statement will be cached the longest time; trust me.

profiling PHP; those big big in PHP 5 knows it.

benchmarking Apache; if you're running one. [in other word torture your machine to see it's ability]

Cheers,
Calverstine
回复

使用道具 举报

发表于 22-1-2007 10:10 AM | 显示全部楼层
必要时可考虑memcached。它是个高效、快速的分布式内存对象缓存系统,主要用于加速 WEB 动态应用程序。简单来说是 memory cache
回复

使用道具 举报

 楼主| 发表于 22-1-2007 10:34 AM | 显示全部楼层
谢谢大家!

我也刚在google 找到memcache
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

 

ADVERTISEMENT



ADVERTISEMENT



ADVERTISEMENT

ADVERTISEMENT


版权所有 © 1996-2023 Cari Internet Sdn Bhd (483575-W)|IPSERVERONE 提供云主机|广告刊登|关于我们|私隐权|免控|投诉|联络|脸书|佳礼资讯网

GMT+8, 27-8-2025 01:46 PM , Processed in 0.120818 second(s), 24 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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