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

Cache store settings do not save correctly on multi front end server sites

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a bug
    • Icon: Minor Minor
    • None
    • 2.7.10, 2.8.8, 2.9.2
    • Caching
    • None
    • MOODLE_27_STABLE, MOODLE_28_STABLE, MOODLE_29_STABLE

      If Moodle is running on multiple web server tiers and opcache is enabled when the cache configuration is changed the settings only take effect on the webserver the change was made on.

      This occurs because the configuration is cached in a php file <moodledata>/muc/config.php

      Opcache must be cleared on all the servers for the changes to take effect correctly.

      How to reproduce

      Pre-requisites

      • You must have a Moodle installation with two webservers that are load balanced
      • they must share the Moodledata directory
      • they must share the shared database
      • opcache must be enabled on both servers

      Steps

      • Login to Moodle and go to Site administration > Plugins > Caching > Configuration
      • Add a new cache store instance
      • Make sure you change the server you are load balance to. If the load balancer does not keep you on the same server by repeatedly refreshing the browser you should see the new cache store instance appear and disappear from the configuration page.

            Unassigned Unassigned
            nmagill Neill Magill
            Votes:
            3 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.