用户
 找回密码
 入住 CI 中国社区
搜索
查看: 1547|回复: 0
收起左侧

[HELP] 关于缓存问题

[复制链接]
发表于 2013-6-8 13:08:12 | 显示全部楼层 |阅读模式
//index函数的part
if (strlen($this->uri->uri_string()) > 0)
{
        redirect('/', 'location');
        return;
}

//artist函数的part
$local = "category/artist";
if ($local != $this->uri->uri_string())
{
        redirect($local, 'location');
        return;
}

因为我做缓存的地方只有首页且没有传参于是我在想这样做是否可行。
程序的入口全部用ROUTE配置好了。。。

我个人对缓存的两个看法:
1. 缓存会根据URL进行保存是特性不是BUG(=__,=;;)
2. 任何GET和POST都要经过验证这个是肯定的,这个和程序编写真有关系。

本版积分规则