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; }
function jpcache_key() { $key = md5(jpcache_scriptkey() . jpcache_varkey()); jpcache_debug("Cachekey is set to {$key}"); return $key; }