mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-16 18:53:26 +02:00
My bad
This commit is contained in:
@@ -33,7 +33,7 @@ class Towns
|
|||||||
/**
|
/**
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
private static $filename = CACHE . 'persistent' . 'towns.php';
|
private static $filename = CACHE . 'persistent/' . 'towns.php';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Determine towns
|
* Determine towns
|
||||||
|
@@ -40,7 +40,7 @@ class Items
|
|||||||
}
|
}
|
||||||
|
|
||||||
require_once LIBS . 'cache_php.php';
|
require_once LIBS . 'cache_php.php';
|
||||||
$cache_php = new Cache_PHP(config('cache_prefix'), CACHE . 'persistent');
|
$cache_php = new Cache_PHP(config('cache_prefix'), CACHE . 'persistent/');
|
||||||
$cache_php->set('items', $items, 5 * 365 * 24 * 60 * 60);
|
$cache_php->set('items', $items, 5 * 365 * 24 * 60 * 60);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -68,7 +68,7 @@ class Items
|
|||||||
}
|
}
|
||||||
|
|
||||||
require_once LIBS . 'cache_php.php';
|
require_once LIBS . 'cache_php.php';
|
||||||
$cache_php = new Cache_PHP(config('cache_prefix'), CACHE . 'persistent');
|
$cache_php = new Cache_PHP(config('cache_prefix'), CACHE . 'persistent/');
|
||||||
self::$items = $cache_php->get('items');
|
self::$items = $cache_php->get('items');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -41,7 +41,7 @@ class NPCs
|
|||||||
}
|
}
|
||||||
|
|
||||||
require_once LIBS . 'cache_php.php';
|
require_once LIBS . 'cache_php.php';
|
||||||
$cache_php = new Cache_PHP(config('cache_prefix'), CACHE . 'persistent');
|
$cache_php = new Cache_PHP(config('cache_prefix'), CACHE . 'persistent/');
|
||||||
$cache_php->set('npcs', $npcs, 5 * 365 * 24 * 60 * 60);
|
$cache_php->set('npcs', $npcs, 5 * 365 * 24 * 60 * 60);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -53,7 +53,7 @@ class NPCs
|
|||||||
}
|
}
|
||||||
|
|
||||||
require_once LIBS . 'cache_php.php';
|
require_once LIBS . 'cache_php.php';
|
||||||
$cache_php = new Cache_PHP(config('cache_prefix'), CACHE . 'persistent');
|
$cache_php = new Cache_PHP(config('cache_prefix'), CACHE . 'persistent/');
|
||||||
self::$npcs = $cache_php->get('npcs');
|
self::$npcs = $cache_php->get('npcs');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user