• Should the *.php files in /wp-content/cache/* get cached by the OpCache or should they be blacklisted? There are a tons of those, causing the need for a much larger opcache.max_accelerated_files setting.

    How often do they get recycled? Do stale (unused files) sit there for long? I don’t want to be increasing the memory for the OpCache to cache files that are rarely used…

Viewing 4 replies - 1 through 4 (of 4 total)
  • You should set the opcache.blacklist_filename configuration value with a file path to your blacklist.

    Add the blacklist file path to your php.ini:

    opcache.blacklist_filename=/etc/php5/opcache-blacklist.txt

    And save with your wildcard setting:

    /wp-content/cache/*

    Thread Starter crashnet

    (@crashnet)

    Thanks nigro.

    I don’t think the wildcard will work when setup that way. I tried something similar for blacklisting /wp-admin/ and ended up having to use

    /home/*/public_html/wp-admin/*

    also, are you sure the cache files are supposed to be blacklisted? there isn’t one single mention of this on google:

    https://www.google.com/search?q=opcode+blacklist+"%2Fwp-content%2Fcache%2F"

    (couldn’t get this link to work)

    • This reply was modified 7 years, 2 months ago by crashnet.
    • This reply was modified 7 years, 2 months ago by crashnet.
    • This reply was modified 7 years, 2 months ago by crashnet.
    • This reply was modified 7 years, 2 months ago by crashnet.
    Thread Starter crashnet

    (@crashnet)

    Bump.

    Thread Starter crashnet

    (@crashnet)

    It seems the plugin itself excludes the /wp-content/cache/* files.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘W3TC: Zend Opcode and W3 Total Cache’ is closed to new replies.