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

alternative component cache location and other cleanup

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.6
    • Fix Version/s: 2.6
    • Component/s: Libraries
    • Labels:
      None
    • Testing Instructions:
      Hide

      1/ install moodle (without debug mode)
      2/ run phpunit init and then all tests
      3/ run behat init and then all tests
      4/ set config.php setting $CFG->alternative_component_cache = 'somepath/core_component.php'; and verify it is created automatically if directory writable
      5/ try all CLI options from "php admin/cli/alternative_component_cache.php"
      6/ alter you alternative core_component.php file - some whitespace that does not create PHP error
      7/ verify normal pages still work fine (because they do not validate the cache)
      8/ verify admin/index.php page shows error that the cache file is stale
      9/ execute "php admin/cli/alternative_component_cache.php --rebuild" and verify the core_component.php file is fixed again

      Show
      1/ install moodle (without debug mode) 2/ run phpunit init and then all tests 3/ run behat init and then all tests 4/ set config.php setting $CFG->alternative_component_cache = 'somepath/core_component.php'; and verify it is created automatically if directory writable 5/ try all CLI options from "php admin/cli/alternative_component_cache.php" 6/ alter you alternative core_component.php file - some whitespace that does not create PHP error 7/ verify normal pages still work fine (because they do not validate the cache) 8/ verify admin/index.php page shows error that the cache file is stale 9/ execute "php admin/cli/alternative_component_cache.php --rebuild" and verify the core_component.php file is fixed again
    • Affected Branches:
      MOODLE_26_STABLE
    • Fixed Branches:
      MOODLE_26_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      w29_MDL-40475_m26_componentcache

      Description

      see MDL-39854, this should allow storing of component cache outside of shared cachedir

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              skodak Petr Skoda
              Reporter:
              skodak Petr Skoda
              Integrator:
              Damyon Wiese
              Tester:
              Mark Nelson
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

                Dates

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