• So I’m sure I sound like a newb here when I look at my W3 Total Cache combatility check it saids

    Opcode cache: Installed (APC)
    Memcache extension: Not installed

    But my php ini saids APC is off. This makes no sense to me. Also what exactly is memcache?

    Should I also be using it?

    Finally I’ve been seeing this in my logs for a while.

    PHP Warning: apc_store(): Potential cache slam averted for key 'w3tc_key_mysite.com_0_object_ce2b0918636aa420fc452eccd6f14ce7_0' in /var2/www/vhosts/mysite.com/wp-content/plugins/w3-total-cache/lib/W3/Cache/Apc.php on line 55, referer: https://mysite.com/2013/07/14/20-pagename/5/

    But I’m unsure if it’s an issue.

Viewing 8 replies - 1 through 8 (of 8 total)
  • For APC see here:
    https://stackoverflow.com/questions/4983370/php-apc-potential-cache-slam-averted-for-key

    As for why it’s being used but yet the php.ini says it’s disabled? I would suggest checking two things:

    1. Check to see if you have the file – /etc/php.d/apc.ini
    That may contain the settings to enable on or off

    2. Check your php.ini and verfiy you have apc.enabled=0. if it is apc.enabled=1, then apc is turned on

    Then for memcache… use google dude. ??

    Oh and one more thing. APC comes with a dashboard to display current cache use. Which might be helpful if you want to verify that it’s being used.

    On my system (yours could be completely different) there is a file here:
    usr/local/src/APC-3.1.9/apc.php

    If you copy apc.php to your webroot you can then access it via a url and see stats.

    Thread Starter Philip Isaacs

    (@pisaacs)

    Hey alloyking,

    I’ve discovered that there is are two apc.ini on my web server. One in the w3c-total-cache dir and one in my php5 dir. As far as I can tell I’m using (i think) the one in the plugins directory.

    Anyhow, thanks for the feedback.

    I’ve also discovered the apc.php in the pub dir of the plugin but can’t seem to get it to load in my stock WordPress install. I’m not sure why but I keep getting “unauthorized user” when I try to bring up the page. Any ideas?

    I could be wrong here, but I believe the apc.ini in the Super Cache folder is just a template and not being used. The reason is I have specific settings in my php5 dir apc.ini file which are being honored by the system.

    as for the “apc.php in the pub dir” take that file and put it in your root directory (same place where wp-config.php is listed). Then do https://www.yourdomain.com/apc.php

    Hope you get it working!

    wait… that apc.php file is not the one you want. Don’t move that!

    Thread Starter Philip Isaacs

    (@pisaacs)

    No problem. I wasn’t going to move anything. BTW I’m
    Using W3 Total Cache not Super Cache. Does this have any bearing?

    Super Cache was a typo. Just got done switching a site from SC to TC.

    Thread Starter Philip Isaacs

    (@pisaacs)

    So what would be the script I want to use, to view what the cache is doing then? Is there another place I should be looking?

    Philip

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Is there a way to tell if APC is actually working’ is closed to new replies.