xoops网页加速插件fastestcache [技术论坛 - 效率优化] imag1

正在浏览:   1 名游客




(1) 2 »


xoops网页加速插件fastestcache
高级会员
注册日期:
2006/3/9 1:20
所属群组:
注册会员
帖子: 107 | 精华: 3
等级: 9; EXP: 35
HP: 0 / 208
MP: 35 / 513
离线
使用方法:
USAGE:

(1) copy fastestcache.php into your XOOPS_ROOT_PATH/include/

(2) make a new folder out of DocumentRoot eg) /home/yourhome/xoops/

(3) make a new folder named "fullcache" under the folder made in step2. Then, chmod 777 fullcache/ .

(4) insert a line into just after defining XOOPS_URL in mainfile.php. (Edit '/home/yourhome/xoops')

define
('XOOPS_TRUST_PATH','/home/yourhome/xoops');


(5) insert a line into just before including common.php (out of if part) in mainfile.php.

require XOOPS_ROOT_PATH.'/include/fastestcache.php' ;

If you use EMLH, this line should be inserted after EMLH.
If you use Protector, this line should be inserted just before precheck.

(6) insert a line into just after including common.php (inside if part) in mainfile.php

if (!isset($xoopsOption['nocommon']) ... ) {
        include 
XOOPS_ROOT_PATH."/include/common.php";
        
fastestcache_setcookie() ; // Insert this
    
}


(7) open include/functions.php and insert a line into the top of function redirect_header().

function redirect_header($url$time 3$message ''$addredirect true)
{
    
fastestcache_clearcache() ; // Insert this

    
global $xoopsConfig$xoopsRequestUri$xoopsLogger$xoopsUserIsAdmin;


If you've updated XOOPS core version, patch include/functions.php again.


->进入下载页面

2006/6/3 20:38
工具箱 短消息 Email 书签 打印 WordPress 举报 回顶部


回复: xoops网页加速插件fastestcache
高级会员
注册日期:
2006/3/9 1:20
所属群组:
注册会员
帖子: 107 | 精华: 3
等级: 9; EXP: 35
HP: 0 / 208
MP: 35 / 513
离线
奇怪,我在后台升级论坛模块后原先设置的子论坛就不翼而飞了,上面的链接已失效

重新建了个子分类,新下载链接:

点击进入下载页面

2006/6/5 13:07
工具箱 短消息 Email 书签 打印 WordPress 举报 回顶部


回复: xoops网页加速插件fastestcache
高级会员
注册日期:
2004/12/5 19:34
来自 308627538
所属群组:
注册会员
帖子: 132 | 精华: 2
等级: 10; EXP: 53
HP: 0 / 238
MP: 44 / 1460
离线
楼主,你能不能把这个用中文详细的说明一下。我看不懂呀,我英文是白痴一个。先谢过了

2006/6/17 21:08
_________________

IT技术互助



Open in new window
工具箱 短消息 Email 书签 打印 WordPress 举报 回顶部


回复: xoops网页加速插件fastestcache
项目管理员
注册日期:
2004/7/19 23:57
来自 重庆
所属群组:
注册会员
ComSupp
推广组
帖子: 890 | 精华: 1
等级: 26; EXP: 65
HP: 128 / 641
MP: 296 / 4643
离线
这个应该说原来说过的cache方法吧.

2006/6/18 2:02
_________________
theme.xoops.org.cn诚邀大家共建~
_______________________________
XoopsChina风格模版演示站点
http://theme.xoops.org.cn
工具箱 短消息 Email 书签 打印 WordPress 举报 回顶部


回复: xoops网页加速插件fastestcache
高级会员
注册日期:
2006/3/9 1:20
所属群组:
注册会员
帖子: 107 | 精华: 3
等级: 9; EXP: 35
HP: 0 / 208
MP: 35 / 513
离线
很简单的
1.解压后把fastestcache.php放XOOPS_ROOT_PATH/include/目录下。
2.在XOOPS_ROOT_PATH目录下建立个文件夹fullcache,设为可读写。
3.修改mainfile.php文件(修改前先改为可读写,一共要插入3行代码)
3.1 在define('XOOPS_URL', 'http://www.xxx.com');后插入这一行
define('XOOPS_TRUST_PATH','x:/wwwroot/xxxxx');
('x:/wwwroot/xxxxx'是你xoops在服务器上的绝对地址,可参考XOOPS_ROOT_PATH的参数)
3.2 找到define('XOOPS_GROUP_ANONYMOUS', '3');下插入这行:
require XOOPS_ROOT_PATH.'/include/fastestcache.php' ;
3.3 再在include XOOPS_ROOT_PATH."/include/common.php"; 下插入这行:
fastestcache_setcookie() ;
4. 打开include/functions.php
在function redirect_header($url, $time = 3, $message = '', $addredirect = true)
{
后面插入:fastestcache_clearcache() ;
5.全部修改完毕,升级下系统模块,清空cache,刷新下网页,如果fullcache目录里有文件了,就说明安装成功。

2006/6/18 10:02
工具箱 短消息 Email 书签 打印 WordPress 举报 回顶部


回复: xoops网页加速插件fastestcache
高级会员
注册日期:
2004/12/5 19:34
来自 308627538
所属群组:
注册会员
帖子: 132 | 精华: 2
等级: 10; EXP: 53
HP: 0 / 238
MP: 44 / 1460
离线
谢谢你的及里回复,我现在马上按你的方法试过一下。看能不能行

2006/6/18 10:26
_________________

IT技术互助



Open in new window
工具箱 短消息 Email 书签 打印 WordPress 举报 回顶部


回复: xoops网页加速插件fastestcache
高级会员
注册日期:
2004/12/5 19:34
来自 308627538
所属群组:
注册会员
帖子: 132 | 精华: 2
等级: 10; EXP: 53
HP: 0 / 238
MP: 44 / 1460
离线
本人刚刚试过了。不行,我是一步一步按你的方法做的。还好我做了备份,要不死了

2006/6/18 11:06
_________________

IT技术互助



Open in new window
工具箱 短消息 Email 书签 打印 WordPress 举报 回顶部


回复: xoops网页加速插件fastestcache
高级会员
注册日期:
2006/3/9 1:20
所属群组:
注册会员
帖子: 107 | 精华: 3
等级: 9; EXP: 35
HP: 0 / 208
MP: 35 / 513
离线
对不起,上面漏了一句。
再在define('XOOPS_GROUP_ANONYMOUS', '3');下插入这行:
require XOOPS_ROOT_PATH.'/include/fastestcache.php' ;

我自己在网站上用了,没问题的。

还有,如果成功安装了,以后清空cache时就要清空这3个目录:
cache、fullcache和templates_c

2006/6/18 11:13
工具箱 短消息 Email 书签 打印 WordPress 举报 回顶部


回复: xoops网页加速插件fastestcache
高级会员
注册日期:
2004/12/5 19:34
来自 308627538
所属群组:
注册会员
帖子: 132 | 精华: 2
等级: 10; EXP: 53
HP: 0 / 238
MP: 44 / 1460
离线
我用了你的xoops网页加速插件fastestcache之后,首页出现一片空白.后台还能访问,就是前台不行.所有的模组也出现了不正常.访问论坛之后,出现提示
引文:

发生错误
SELECT t.*, p.post_time as last_post_time, p.poster_name as last_poster_name, p.icon, p.post_id, p.uid, p.post_karma, p.require_reply, pt.post_text FROM xoopswtu_bb_topics t LEFT JOIN xoopswtu_bb_posts p ON p.post_id = t.topic_last_post_id LEFT JOIN xoopswtu_bb_posts_text pt ON pt.post_id = t.topic_last_post_id WHERE (p.post_time > 1142000011 OR t.topic_sticky=1) AND t.forum_id = 16 AND t.approved = 1 AND p.approved = 1 ORDER BY t.topic_sticky DESC, p.post_time DESC

只有我自已做的几个模组是正常的.
请帮我分析一下,这是怎么回事呢

2006/6/18 22:18
_________________

IT技术互助



Open in new window
工具箱 短消息 Email 书签 打印 WordPress 举报 回顶部


回复: xoops网页加速插件fastestcache
高级会员
注册日期:
2004/12/5 19:34
来自 308627538
所属群组:
注册会员
帖子: 132 | 精华: 2
等级: 10; EXP: 53
HP: 0 / 238
MP: 44 / 1460
离线
我向你介绍下我的安装环境,我装的是xoops2.26版本的.之后还装了安全补丁.另外还装了个安全模组.不知你的安装环境是不是和我的相同呢.

2006/6/18 22:21
_________________

IT技术互助



Open in new window
工具箱 短消息 Email 书签 打印 WordPress 举报 回顶部





可以查看帖子。
不可发帖。
不可回复。
不可编辑自己的帖子。
不可删除自己的帖子。
不可发起投票调查。
不可在投票调查中投票。
不可上传附件。
不可不经审核直接发帖。
不可使用主题类别。
不可以使用HTML语法。
不可以使用签名档。

[高级搜索]