Skip to content

[Performance] Mention cachetool for clearing opcode caches? #7793

Closed
@apfelbox

Description

@apfelbox

In the performance article, the section about byte code caches mentions the problem with clearing the APC/OpCache from the CLI.

The article mentions a working, but rather impractical way:

You either need to restart the web server or call the apc_clear_cache() or opcache_reset() functions via the web server (i.e. by having these in a script that you execute over the web).

If you are running PHP via FCGI (like FPM) you can use the cachetool to send the cache clear command directly via the FCGI protocol. That prevents exposing a publicly callable cache-clear script (which might be a DDoS attack vector).

So my question: would be beneficial to mention this tool here as a better solution to this problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueIdeal for your first contribution! (some Symfony experience may be required)hasPRA Pull Request has already been submitted for this issue.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions