예제 #1
0
function jpcache_key()
{
    if ($GLOBALS["JPCACHE_CLEANKEYS"]) {
        $key = eregi_replace("[^A-Z,0-9,=]", "_", jpcache_scriptkey());
        $key .= "." . eregi_replace("[^A-Z,0-9,=]", "_", jpcache_varkey());
        if (strlen($key) > 255) {
            // Too large, fallback to md5!
            $key = md5(jpcache_scriptkey() . jpcache_varkey());
        }
    } else {
        $key = md5(jpcache_scriptkey() . jpcache_varkey());
    }
    jpcache_debug("Cachekey is set to {$key}");
    return $key;
}
예제 #2
0
function jpcache_key()
{
    $key = md5(jpcache_scriptkey() . jpcache_varkey());
    jpcache_debug("Cachekey is set to {$key}");
    return $key;
}