Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-69770

APCu cache has issues when storing config settings

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Development in progress
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.9.2
    • Fix Version/s: None
    • Component/s: Caching
    • Labels:
    • Environment:
      1. APCu cache store properly enabled and configured
      2. Moodle CLI code using cache definitions based on APCu cache store

      Description

      This is a followup from https://moodle.org/mod/forum/discuss.php?d=409932.

      It seems that the APCu cache is not available to the cron.php script. As a result it can end up pulling stale data. This is most notable with the admin notifications page as it reports that the cron scripts haven't been run when that have.

      Steps to reproduce:
      1/ enable APCu for your moodle instance (both web and cli)
      2/ configure Moodle to store config settings (core/config in APCu) as the primary store
      3/ Let cron run for a while then visit the notifications page. You will get a report that cron is not running correctly.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              matteo Matteo Scaramuccia
              Reporter:
              sbourget Stephen Bourget
              Participants:
              Component watchers:
              Matteo Scaramuccia, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated: