Can't store PageArray or WireCache as array keys in WireCache #775
Short description of the issue
If you try to store an array in a WireCache the returned array is broken if you have
It should return the array exactly as it is stored.
Kinda whacky array returned with most data missing.
Optional: Suggestion for a possible fix
The problem is due to this code: https://github.com/processwire/processwire/blob/649d2569abc10bac43e98ca98db474dd3d6603ca/wire/core/WireCache.php#L279-L285
My old workaround was to manually
The problem is immediately fixed if I remove those referenced lines of code, but I realize that's not a viable solution. Perhaps we could have any option to handle the conversion of arrays to strings ourselves without WireCache trying to do it for us - maybe a new argument when calling
Steps to reproduce the issue
The text was updated successfully, but these errors were encountered:
@ryancramerdesign - the issue still exists - it's just that now you're returning more explicit errors about why it doesn't work.