rss-bridge/caches
Dag 0a118310cb
fix(sqlitecache): store blob as blob (#3555)
serialize() can return output with null bytes and other
non-text data. The prior behavior truncated data
which later results in unserialize() errors.

This happens when e.g. caching an object with a private field
or when caching e.g. a JPEG file (starts with 0xFFD8FFE1)

Fixes errors such as e.g.:

unserialize(): Error at offset 20 of 24 bytes at caches/SQLiteCache.php line 51
2023-07-20 19:11:13 +02:00
..
FileCache.php refactor(cache): extract and encapsulate cache expiration logic (#3547) 2023-07-19 05:05:49 +02:00
MemcachedCache.php fix(memcached): do not flush entire cache, oops (#3551) 2023-07-19 05:18:26 +02:00
NullCache.php refactor(cache): extract and encapsulate cache expiration logic (#3547) 2023-07-19 05:05:49 +02:00
SQLiteCache.php fix(sqlitecache): store blob as blob (#3555) 2023-07-20 19:11:13 +02:00