[Plugin: DB Cache Reloaded] i made a few tweaks
-
Im not sure if it made a difference cause its hard to tell on a shared server.
In the db-functions.php file i changed the load function to:
function load( $tag = ” ) {
if ( $tag == ” ) {
return false;
}$file = $this->storage.”/”.$tag;
$result = unserialize( file_get_contents( $file ) );
return $result;
}
`
on line 775 in db-module.phpold: $dbcr_queryid = md5($query);
new: $dbcr_queryid = hash(‘md5’, $query);i read somewhere that hash is much faster
also when cache new results it was serializing the query results twice so i removed the second one in db-functions.php and deleted line 884 ish.
$dbcr_cached = unserialize( $dbcr_cached );
Everything’s working fine, and technically it should make a speed difference.
- The topic ‘[Plugin: DB Cache Reloaded] i made a few tweaks’ is closed to new replies.