经检查smarty目录中的Smarty_Compiler.class.php,已经加上: if($tag_command == 'cacheless') $this->_plugins['block'][$tag_command] = array($plugin_func, null, null, null, false);else $this->_plugins['block'][$tag_command] = array($plugin_func, null, null, null, true);
plugins目录下也已经有block.cacheless.php
可我根据用户是否已经登陆来决定是否显示登陆框的部分却总还是被缓存。那部分我明明已经放到{cacheless}{/cacheless}区块中了呀。当我清除cache目录下的文件后,如果每个打开此页面的用户当前已经登陆,则之后所有用户都能看到第一次访问它的用户的信息。如果没有登陆,则即使当前已经登陆的用户也会显示还没有登陆。
有没有高手碰到过类似情况,指点一下吧