mirror of
https://github.com/LBRYFoundation/lbry.com.git
synced 2025-08-23 09:37:26 +00:00
update function name for the cache
https://stackoverflow.com/questions/38283791/call-to-undefined-function-apc-clear-cache
This commit is contained in:
parent
9e6a7a55f4
commit
fdea49e153
1 changed files with 2 additions and 2 deletions
|
@ -24,7 +24,7 @@ class Autoloader
|
||||||
{
|
{
|
||||||
$key = 'lbry-classes-5';
|
$key = 'lbry-classes-5';
|
||||||
if (ini_get('apc.enabled') && !$reload) {
|
if (ini_get('apc.enabled') && !$reload) {
|
||||||
$classes = apc_fetch($key, $success);
|
$classes = apcu_fetch($key, $success);
|
||||||
if ($success) {
|
if ($success) {
|
||||||
static::$classes = $classes;
|
static::$classes = $classes;
|
||||||
return;
|
return;
|
||||||
|
@ -43,7 +43,7 @@ class Autoloader
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ini_get('apc.enabled')) {
|
if (ini_get('apc.enabled')) {
|
||||||
apc_store($key, static::$classes);
|
apcu_store($key, static::$classes);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue