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

add support for component cache reset after adding new core classes

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • 2.6
    • 2.6
    • Administration
    • MOODLE_26_STABLE
    • MOODLE_26_STABLE
    • MDL-41460-master
    • Hide

      No opcache

      1. Open your site, do NOT login.
      2. Hack the file moodledata/cache/core_component.php and remove the entry core_string_manager.
      3. Make sure the site crashes on view of index.php
      4. Bump the version in version.php
      5. Make sure the site does not crash any more
      6. Re-hack the file the same way
      7. Make sure the site crashes on view of index.php
      8. Go to admin/index.php
      9. Make sure you can view the page
      10. Make sure you can now also view index.php

      Opcache support test

      1. Hack the file moodledata/cache/core_component.php and remove the entry core_string_manager.
      2. Make sure the site crashes on view of index.php
      3. Bump the version.php
      4. Make sure the site does not crash on view of admin/index.php?cache=1
      Show
      No opcache Open your site, do NOT login. Hack the file moodledata/cache/core_component.php and remove the entry core_string_manager . Make sure the site crashes on view of index.php Bump the version in version.php Make sure the site does not crash any more Re-hack the file the same way Make sure the site crashes on view of index.php Go to admin/index.php Make sure you can view the page Make sure you can now also view index.php Opcache support test Hack the file moodledata/cache/core_component.php and remove the entry core_string_manager . Make sure the site crashes on view of index.php Bump the version.php Make sure the site does not crash on view of admin/index.php?cache=1

      the problem is mainly in master branch where new classes are used on frontpage before version redirect...

      -solution is to look for recently added core classes in core_component init-

      better solution proposed by Fred could be to verify the version from version.php, please note it does not prevent all problems but it should catch a lot...

            fred Frédéric Massart
            skodak Petr Skoda
            Petr Skoda Petr Skoda
            Sam Hemelryk Sam Hemelryk
            David Monllaó David Monllaó
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

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