Topic on Project:Support desk

Hi, i want to use APCU, but its keeps having troubles with login

2
187.176.240.244 (talkcontribs)

Hi, i had installed APCu

Its in the phpinfo, i tried using Zend Opcache and it works but its not as fast as APCu, and if i dont use APCu, if i use DB cache or none, pages takes forever to load.

The problem is, if i set CACHE_ACCEL, the login loads pretty fast, also de pages, but cant login into accounts, it says that tipical error "Bla bla bla hijacking account bla bla bla", its pretty anoying, i had teste APCu code and it seems to work very well.

here is the code i used to test

apcu_add('idCliente', 1788, 0);

apcu_add('correo', 'juan.gzz.salz@gmail.com');

echo 'IdCliente session is: ' . apcu_fetch('idCliente');

echo 'correo session is: ' . apcu_fetch('correo');

apcu_clear_cache();

//I only wanted to test if it really clears fully the cahe for this two lines

echo 'IdCliente session is: ' . apcu_fetch('idCliente');

echo 'correo session is: ' . apcu_fetch('correo');

And everything worked so its not APCu, that proves it is installed,

i installed php_apcu-5.1.8-7.0-ts-vc14-x86,

also its the only compatible thats why i used that,

x64 doesnt seems to work on any XAMPP installation nor windows,

even with 64bits processor, also non thread safe doesnt work,

so im using thread safe.

PHP version is 7.0.3, but it happens the same in an installation with 5.6.12, (i installed the accurate APCu version and test it too there).

I dont want to use anything that doesnt is CACHE_ACCEL, pages last long.

let me know if there is something im missing, requeriments, my system, etc.

AhmadF.Cheema (talkcontribs)

Are you using MediaWiki version > v1.27?

Try setting: $wgSessionCacheType = CACHE_DB;