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

add support for component cache reset after adding new core classes

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.6
    • Fix Version/s: 2.6
    • Component/s: Administration
    • Labels:
    • Testing Instructions:
      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
    • Affected Branches:
      MOODLE_26_STABLE
    • Fixed Branches:
      MOODLE_26_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-41460-master

      Description

      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...

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  18/Nov/13