Skip to content

Using clearstatcache before checking file states/manipulations #6

@peter279k

Description

@peter279k

According to clearstatcache function reference, the file state cache is effected on following related file functions:

Affected functions include stat(), lstat(), file_exists(), is_writable(), is_readable(), is_executable(), is_file(), is_dir(), is_link(), filectime(), fileatime(), filemtime(), fileinode(), filegroup(), fileowner(), filesize(), filetype(), and fileperms().

To avoid file stat caching, it should use this function before manipulating any file operation :).

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