Title: Exclude plugins or files
Last modified: May 2, 2022

---

# Exclude plugins or files

 *  Resolved [Tyke79](https://wordpress.org/support/users/tyke79/)
 * (@tyke79)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/exclude-plugins-or-files/)
 * 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 4 years, 1 month ago by [Tyke79](https://wordpress.org/support/users/tyke79/).

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Nawawi Jamili](https://wordpress.org/support/users/nawawijamili/)
 * (@nawawijamili)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/exclude-plugins-or-files/#post-15609461)
 * 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](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](https://www.php.net/manual/en/opcache.configuration.php#ini.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 4 years, 1 month ago by [Nawawi Jamili](https://wordpress.org/support/users/nawawijamili/).
 *  Plugin Author [Nawawi Jamili](https://wordpress.org/support/users/nawawijamili/)
 * (@nawawijamili)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/exclude-plugins-or-files/#post-15619455)
 * Hi,
 * I’m marking this thread as resolved. Feel free to open a new topic if you have
   further questions.
 * Thanks.
 *  Thread Starter [Tyke79](https://wordpress.org/support/users/tyke79/)
 * (@tyke79)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/exclude-plugins-or-files/#post-15639758)
 * 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](https://wordpress.org/support/users/nawawijamili/)
 * (@nawawijamili)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/exclude-plugins-or-files/#post-15640348)
 * Hi [@tyke79](https://wordpress.org/support/users/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 4 years, 1 month ago by [Nawawi Jamili](https://wordpress.org/support/users/nawawijamili/).

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Exclude plugins or files’ is closed to new replies.

 * ![](https://ps.w.org/docket-cache/assets/icon-256x256.png?rev=2425893)
 * [Docket Cache - Object Cache Accelerator](https://wordpress.org/plugins/docket-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/docket-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/docket-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/docket-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/docket-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/docket-cache/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Nawawi Jamili](https://wordpress.org/support/users/nawawijamili/)
 * Last activity: [4 years, 1 month ago](https://wordpress.org/support/topic/exclude-plugins-or-files/#post-15640348)
 * Status: resolved