• Resolved RobotFX

    (@wattaman)


    I’m testing it on localhost, before launching my website live. I’m running Apache+php8.2, on windows 11. The APCu is enabled as it shows in php info, and it has these settings in the php.ini:

    [apcu]
    extension="C:\xampp\php\ext\php_apcu.dll"
    apc.enable=1
    apc.shm_size=32M
    apc.ttl=7200
    apc.enable_cli=1
    apc.serializer=php

    The APCu shows in the WordPress > Tools > Health also, however the plugin itself doesn’t seem to find it. It states “APCu extension is NOT installed/enabled.”

    I’ve tried changing the browser, cleaning the cache etc, the last thing I wonder is whether or not the plugin works on localhost. Any ideas?

    Thank you

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author docjojo

    (@docjojo)

    It works on localhost and also under windows.

    where in site health do you see APC info?
    can you send a screenshot?


    screen2.link

    What happens if you run this code:

    <pre><?php

    print_r(apcu_cache_info()['mem_size']??'');
    Thread Starter RobotFX

    (@wattaman)

    When I run the code I get a 0

    I meant the /wp-admin/site-health.php. I can’t upload images here, but this is from the WP health page:

    You should use a persistent object cache
    Performance
    A persistent object cache makes your site’s database more efficient, resulting in faster load times because WordPress can retrieve your site’s content and settings much more quickly.

    Your hosting provider can tell you if a persistent object cache can be enabled on your site. Your host appears to support the following object caching services: APCu.

    And this from my php info

    apcu
    APCu Support Enabled
    Version 5.1.24
    APCu Debugging Disabled
    MMAP Support Disabled
    Serialization Support php
    Build Date Nov 29 2024 01:59:27

    And from /wp-admin/plugins.php

    atec Cache APCu
    | Deactivate | APCu extension required!

    and finally on the plugin’s page

    APCu Object Cache 
    APCu extension is NOT installed/enabled.

    The object cache is the main feature of the plugin and will speed up your site
    Plugin Author docjojo

    (@docjojo)

    You can use screen2.link to post images.

    Plugin Author docjojo

    (@docjojo)

    what do you get?

    <pre><?php

    echo 'hello';

    print_r(apcu_cache_info()['mem_size']??'');

    echo '<br>';

    print_r('ext'.extension_loaded('apcu'));

    echo '<br>';

    print_r('enabled'.apcu_enabled());

    echo '<br>';
    Plugin Author docjojo

    (@docjojo)

    Please try to

    #apc.serializer=php

    it might also be useful to in php_apcu_bc.dll for APCu with backward APC compatibility

    Thread Starter RobotFX

    (@wattaman)

    Hi,

    Thanks for your support. I’ve just noticed that it is working fine with my other localhost sites, so it must be something with my particular WP installation. I’ll figure it out myself. For now, I can confirm that it works for localhost.

    Regards

    Plugin Author docjojo

    (@docjojo)

    Tnx, positive review always welcome.

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.