Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Exclude path not working with absolute path #214

@LocalHeroPro

Description

@LocalHeroPro
$ php8.1 cachetool.phar opcache:compile:scripts  --exclude=/data/www/example.com/html/wp-content/cache/* /data/www/example.com/html/

In AbstractAdapter.php line 63:
                                                                                                                                                            
  opcache_compile_file(/data/www/example.com/html/wp-content/cache/object/48c/0dc/48c0dce91806d2d8570181853c9f22ed.php): Failed to open stream: No such   
  file or directory (error code: 2)                                                                                                                         
  opcache_compile_file(): Failed opening '/data/www/example.com/html/wp-content/cache/object/48c/0dc/48c0dce91806d2d8570181853c9f22ed.php' for inclusion  
   (include_path='.:/usr/share/php') (error code: 2)                                                                                                        
                                                                                                                                                            

opcache:compile:scripts [--exclude [EXCLUDE]] [--batch] [--] <path>

Please add in docs that option HAVE to be used with relative path from .
Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions