Skip to content

$page->purge() and $site->purge() actions do not clear cached translations #2189

@qwerdee

Description

@qwerdee

Describe the bug
The methods $page->purge() and $site->purge() resets the models content attribute but not translations in a multilang setup.
If the content was already used before, the cached (and potentially stale) content from the translations collection get's into the model.

Expected behavior
The cached translations should also be reset to allow the model to rebuild the content fresh from the file system.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions