Rhaco::constant() (rev3034/3045)
tag.TagParser->read()を読んでて。
if(!Variable::bool(Rhaco::constant("NOT_MAKE_CACHE")) && Variable::bool(Rhaco::constant("TEMPLATE_CACHE")) && !Cache::isExpiry($cacheurl,Rhaco::constant("TEMPLATE_CACHE_TIME",86400)) && (FileUtil::time($filename) < Cache::time($cacheurl))
Cache::isExpiry($cacheurl,Rhaco::constant("TEMPLATE_CACHE_TIME",86400))
これバグ?とか思ったわけです。
バグ違いました。。。
第二パラメータの使い方が肝
Rhaco::constant("hoge",123) → hogeは123
Rhaco::constant("hoge",789) → hogeは123を保持(789にはならない)
/** * 定数定義 * * @param string $defineName * @param string $value * @return string */ function constant($defineName,$value=null){ /*** * eq(null,Rhaco::constant("hoge")); * eq(123,Rhaco::constant("hoge",123)); * eq(123,Rhaco::constant("hoge")); * eq(123,Rhaco::constant("hoge",789)); * eq(123,Rhaco::constant("hoge")); */