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

Purging cache definitions that require identifiers does no work.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.5
    • Fix Version/s: 2.5
    • Component/s: Caching
    • Labels:
    • Testing Instructions:
      Hide
      1. Run unit tests in cache/tests/cache_test.php.
      2. Log in as an admin.
      3. Browse to Settings > plugins > caching > configuration.
      4. Purge the lang string definition.
      5. Purge the database meta definition.
      6. Check you don't get any fatal errors!
      Show
      Run unit tests in cache/tests/cache_test.php. Log in as an admin. Browse to Settings > plugins > caching > configuration. Purge the lang string definition. Purge the database meta definition. Check you don't get any fatal errors!
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_25_STABLE
    • Fixed Branches:
      MOODLE_25_STABLE
    • Pull Master Branch:
      wip-MDL-39525-m25

      Description

      To reproduce:

      1. Log in as an admin.
      2. Browse to Settings > Plugins > Caches > Configuration.
      3. Locate the database meta definition in the definitions table.
      4. Click Purge under its action links.

      Coding error detected, it must be fixed by a programmer: Identifier required for cache has not been provided: dbfamily

      More information about this error

      Debug info:
      Error code: codingerror
      Stack trace:
      line 760 of /cache/classes/definition.php: coding_exception thrown
      line 261 of /cache/classes/loaders.php: call to cache_definition->set_identifiers()
      line 178 of /cache/classes/factory.php: call to cache->set_identifiers()
      line 169 of /cache/classes/loaders.php: call to cache_factory->create_cache_from_definition()
      line 293 of /cache/classes/helper.php: call to cache::make()
      line 212 of /cache/admin.php: call to cache_helper::purge_by_definition()

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                samhemelryk Sam Hemelryk
                Reporter:
                samhemelryk Sam Hemelryk
                Integrator:
                Eloy Lafuente (stronk7)
                Tester:
                Eloy Lafuente (stronk7)
                Participants:
                Component watchers:
                Matteo Scaramuccia, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  14/May/13