uwctri/ReportTweaks

Max number of reports

aanunez opened this issue · 2 comments

Due to how we save settings for reports in this EM their is a chance to run out of space (64k) in our settings object. This should occur around 400 reports. We should migrate to a a better solution or breakup across a few stashes.

Possible solution would be to use something like zipson to compress the json before storing it. But we need to check if there is any HTML to escape before doing so. It would be preferable to just compress in PHP, maybe with something as simple as gzip and base64 encode. This would probably 4x the amount we can store based on a few examples seen in production (i.e. 1600 reports).

base64_encode(gzencode($json));

Resolved as described above using gzcompress