Skip to content

Issue: Cached metadata/generated files #158

@edward-simpson

Description

@edward-simpson

I've been seeing an issue for a while now that I think relates to OPCache and generated metadata. It's not easy to replicate, but usually clears on subsequent deployments.

There are two scenarios I have seen:

  • Addition of new plugin, this plugin doesn't fire until after second deployment with no code changes.
  • Addition of new extension attributes - new attributes don't get added to generated class even after new deployment, causing site errors, solution has previously been to copy locally generated correct class onto server to replace cap generated file.

I think this is related to OPCaching of generated files, we use the cap opcache tool but this only clears opcache at the end of each deployment

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