• Resolved europoint

    (@europoint)


    I had an issue where the file-based opcache was not being cleared or displayed in the Cached Files section. I resolved it as follows:

    Suggest updates in two places:
    1. Lines 105 – 109 in class-flush-opcache-cached-files-list.php to validate against both get_home_path () and ABSPATH:

    if ( false !== strpos( $script['full_path'], get_home_path() ) )  {
    $home_path = get_home_path();
    }
    elseif ( false !== strpos( $script['full_path'], ABSPATH ) )  {
    $home_path = ABSPATH;
    }
    else {
    continue;
    }
    $item = array();
    $item['full_path'] = str_replace( $home_path, './', $script['full_path'] );

    2. Line 318 in class-flush-opcache-admin.php to validate against both get_home_path () and ABSPATH.
    if ( false === strpos( $script['full_path'], get_home_path() ) && false === strpos( $script['full_path'], ABSPATH ) ){

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter europoint

    (@europoint)

    @nierdz I pulled the fix/abspath branch, added changes above and tried to commit, but I don’t have permissions to push a branch. Anything I am doing wrong?

    Plugin Author nierdz

    (@mnttech)

    Hi @europoint
    Thank you for this report.
    To create a pull request on github, you need to first, fork the repository and then create a branch with your fix and push it.
    I can’t see new fork of the repository so I’m assuming you didn’t fork it first.

    Plugin Author nierdz

    (@mnttech)

    Any news @europoint ?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Cached Files Not Displayed or Flushed When FullPath = ABSPATH’ is closed to new replies.