Tomomi 发表于 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都要经过验证这个是肯定的,这个和程序编写真有关系。

页: [1]
查看完整版本: 关于缓存问题