• Resolved Tyke79

    (@tyke79)


    Hello,

    I would like to know if there is a way to exclude from object cache and Zend Cache, plugins or specific files, or database tables.

    Regards

    • This topic was modified 2 years, 7 months ago by Tyke79.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Nawawi Jamili

    (@nawawijamili)

    Hi there,

    Object Cache can be excluded by defining object group, you may refer to it here https://docs.docketcache.com/constants#docket_cache_ignored_groups

    For OPcache it can be excluded at the Server level by configuring PHP at opcache.blacklist_filename directive.

    Database tables or plugins we don’t have a plan to do it for right now.

    Maybe in future, we may have a configuration to bypass object caching based on URL path.

    Thanks.

    • This reply was modified 2 years, 7 months ago by Nawawi Jamili.
    Plugin Author Nawawi Jamili

    (@nawawijamili)

    Hi,

    I’m marking this thread as resolved. Feel free to open a new topic if you have further questions.

    Thanks.

    Thread Starter Tyke79

    (@tyke79)

    Sorry for the delay in responding.

    Thank you for your reply.

    Regarding the OPcache, it is not clear to me where and how I should exclude the files from the server.

    I would appreciate a more detailed example (if possible).

    Thank you and sorry for the inconvenience

    Plugin Author Nawawi Jamili

    (@nawawijamili)

    Hi @tyke79,

    For example, my server is centos and the opcache configuration is placed in /etc/php.d/10-opcache.ini

    From opcache.ini file, it has opcache.blacklist_filename directive and this is how it looks like;

    
    ; The location of the OPcache blacklist file (wildcards allowed).
    ; Each OPcache blacklist file is a text file that holds the names of files
    ; that should not be accelerated.
    opcache.blacklist_filename=/etc/php.d/opcache*.blacklist

    You can define where the path you want to opcache exclude it from a cache in file /etc/php.d/opcache*.blacklist that resolves to /etc/php.d/opcache-default.blacklist, this is how it looks like:

    ; The blacklist file is a text file that holds the names of files
    ; that should not be accelerated. The file format is to add each filename
    ; to a new line. The filename may be a full path or just a file prefix
    ; (i.e., /var/www/x  blacklists all the files and directories in /var/www
    ; that start with 'x'). Line starting with a ; are ignored (comments).
    ; Files are usually triggered by one of the following three reasons:
    ; 1) Directories that contain auto generated code, like Smarty or ZFW cache.
    ; 2) Code that does not work well when accelerated, due to some delayed
    ;    compile time evaluation.
    ; 3) Code that triggers an OPcache bug.
    ;/home/awiedev/wpdev/wpdev-web/woodev

    Thanks.

    • This reply was modified 2 years, 6 months ago by Nawawi Jamili.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Exclude plugins or files’ is closed to new replies.