mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-06 03:49:56 +02:00
This commit is contained in:
parent
e2b3b1ed51
commit
5f5460708a
31 changed files with 226 additions and 238 deletions
|
@ -92,10 +92,7 @@ abstract class database_object
|
|||
public static function get_from_cache($index,$id)
|
||||
{
|
||||
// Check if the object is set
|
||||
if (isset(self::$object_cache[$index])
|
||||
&& isset(self::$object_cache[$index][$id])
|
||||
) {
|
||||
|
||||
if (isset(self::$object_cache[$index]) && isset(self::$object_cache[$index][$id])) {
|
||||
self::$cache_hit++;
|
||||
return self::$object_cache[$index][$id];
|
||||
}
|
||||
|
@ -108,7 +105,7 @@ abstract class database_object
|
|||
* add_to_cache
|
||||
* This adds the specified object to the specified index in the cache
|
||||
*/
|
||||
public static function add_to_cache($index,$id,$data)
|
||||
public static function add_to_cache($index, $id, $data)
|
||||
{
|
||||
if (!self::$_enabled) { return false; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue