Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in apc.php #13

Closed
krisxoofoo opened this issue Apr 3, 2013 · 1 comment
Closed

Error in apc.php #13

krisxoofoo opened this issue Apr 3, 2013 · 1 comment

Comments

@krisxoofoo
Copy link

hi,

replace apc_ by apcu_

see :

// clear cache
if ($AUTHENTICATED && isset($MYREQUEST['CC']) && $MYREQUEST['CC']) {
apcu_clear_cache();
}

if ($AUTHENTICATED && !empty($MYREQUEST['DU'])) {
apcu_delete($MYREQUEST['DU']);
}

if(!function_exists('apcu_cache_info')) {
echo "No cache info available. APC does not appear to be running.";
exit;
}

$cache = apcu_cache_info();

$mem=apcu_sma_info();

@krakjoe
Copy link
Owner

krakjoe commented Apr 4, 2013

Yeah that's the correct thing to do, apcu_ didn't exist when the script was first revised.

I'll get it fixed for next release

CrystSw added a commit to CrystSw/apcu that referenced this issue Jan 14, 2024
# This is the 1st commit message:

implement history list

# This is the commit message krakjoe#2:

add assert

# This is the commit message krakjoe#3:

rename variable

# This is the commit message krakjoe#4:

implementation of eviction logic

# This is the commit message krakjoe#5:

add comment

# This is the commit message krakjoe#6:

change define

# This is the commit message krakjoe#7:

added info

# This is the commit message krakjoe#8:

remove apc_cache_wlocked_add_history_oldest

# This is the commit message krakjoe#9:

rename function

# This is the commit message krakjoe#10:

update info

# This is the commit message krakjoe#11:

update comment

# This is the commit message krakjoe#12:

fixed loop (cause an infinite loop)

# This is the commit message krakjoe#13:

add memo

# This is the commit message krakjoe#14:

change cleaning timing

# This is the commit message krakjoe#15:

use macros

# This is the commit message krakjoe#16:

fixed size

# This is the commit message krakjoe#17:

update the history in the update process

# This is the commit message krakjoe#18:

refactor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants