Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing the cutoff of an existing training session doesn't update cache #1077

Closed
Tracked by #1054
markspolakovs opened this issue Oct 4, 2022 · 1 comment · Fixed by #1078
Closed
Tracked by #1054

Changing the cutoff of an existing training session doesn't update cache #1077

markspolakovs opened this issue Oct 4, 2022 · 1 comment · Fixed by #1078
Labels

Comments

@markspolakovs
Copy link
Member

You can type in a new value on the editDemo screen, but it'll go back to the old one when you save.

@markspolakovs
Copy link
Member Author

Actually it does, and this is a caching issue (#1054) - compare DB vs cache:

+-------+-----------------+---------------------------------+---------+--------+-------------------+----------------+
|demo_id|presenterstatusid|demo_time                        |demo_link|memberid|signup_cutoff_hours|max_participants|
+-------+-----------------+---------------------------------+---------+--------+-------------------+----------------+
|130    |1                |2022-10-04 14:15:00.000000 +00:00|         |11090   |1                  |2               |
+-------+-----------------+---------------------------------+---------+--------+-------------------+----------------+
php > var_dump($mc->get('MyRadioCache-MyRadio\ServiceAPI\MyRadio_Demo-130'));
object(__PHP_Incomplete_Class)#2 (9) {
  ["__PHP_Incomplete_Class_Name"]=>
  string(31) "MyRadio\ServiceAPI\MyRadio_Demo"
  ["demo_id":"MyRadio\ServiceAPI\MyRadio_Demo":private]=>
  int(130)
  ["demo_time":"MyRadio\ServiceAPI\MyRadio_Demo":private]=>
  string(22) "2022-10-04 15:15:00+01"
  ["demo_link":"MyRadio\ServiceAPI\MyRadio_Demo":private]=>
  string(0) ""
  ["presenterstatusid":"MyRadio\ServiceAPI\MyRadio_Demo":private]=>
  string(1) "1"
  ["memberid":"MyRadio\ServiceAPI\MyRadio_Demo":private]=>
  string(5) "11090"
  ["signup_cutoff_hours":"MyRadio\ServiceAPI\MyRadio_Demo":private]=>
  int(15)
  ["demo_max_participants":"MyRadio\ServiceAPI\MyRadio_Demo":private]=>
  string(1) "2"
  ["change":protected]=>
  bool(false)
}

@markspolakovs markspolakovs changed the title Changing the cutoff of an existing training session doesn't work Changing the cutoff of an existing training session update cache Oct 4, 2022
@markspolakovs markspolakovs changed the title Changing the cutoff of an existing training session update cache Changing the cutoff of an existing training session doesn't update cache Oct 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant