Skip to content

WireCache can't save json encoded data (since https://github.com/processwire/processwire/commit/dcf226995ca4e76a6f59a45286f108dd9b9bcead) #919

@adrianbj

Description

@adrianbj

Short description of the issue

If you're trying to store json encoded data in WireCache, this line: https://github.com/processwire/processwire/blob/2b0d8f333accde70251591c7224cdb117f17dd95/wire/core/WireCache.php#L453 causes wireCache to try to store an array, but obviously that can't work.

Optional: Suggestion for a possible fix

Make sure to json_encode the new array (with the WireCache key)

Steps to reproduce the issue

  1. Try to store json encoded data in WireCache

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions