mirror of https://github.com/pixelfed/pixelfed
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Caching an Eloquent model in a Cache::remember closure could deserialize into a __PHP_Incomplete_Class on read, throwing 'attempt to access a property on an incomplete object' and returning a 500. This surfaced on guest profile pages (ProfileController::buildProfile reading $user->user->settings) and affected several other latent call sites. Changes: - ProfileController: cache a plain settings array instead of the UserSetting model; fall back to defaults when the settings row is missing - StoryService::getById: fetch a live model instead of caching it - InstanceService::getByDomain, CustomEmoji::scan: cache arrays - Site/MobileController: cache Page data as an array via a shared ManagesCachedPages trait; update blade views to array access - Add public-route smoke/regression tests covering the cache-read path |
4 weeks ago | |
|---|---|---|
| .. | ||
| ApiRouteSmokeTest.php | 4 weeks ago | |
| AuthRouteSmokeTest.php | 4 weeks ago | |
| MiddlewareTest.php | 4 weeks ago | |
| PublicRouteSmokeTest.php | 4 weeks ago | |
| ScheduleTest.php | ||