Investigate MyRadio_Season::$timeslots
caching when a timeslot is cancelled
#1122
Labels
MyRadio_Season::$timeslots
caching when a timeslot is cancelled
#1122
This is purely hypothetical, but is the only explanation I can come up with for the phenomenon in this slack thread.
When a timeslot is cancelled, we delete the row and update the local cache:
MyRadio/src/Classes/ServiceAPI/MyRadio_Timeslot.php
Lines 1029 to 1038 in 7cbb233
However, MyRadio_Season has a local
$timeslots
field, which is populated at construction-time:MyRadio/src/Classes/ServiceAPI/MyRadio_Season.php
Line 28 in 7cbb233
MyRadio/src/Classes/ServiceAPI/MyRadio_Season.php
Line 146 in 7cbb233
As far as I can tell, the cache for the season object doesn't get wiped when a timeslot gets deleted, which I suspect could trigger an exception like this:
MyRadio/src/Controllers/MyRadio/timeslot.php
Lines 84 to 93 in 7cbb233
The text was updated successfully, but these errors were encountered: