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

alternative component cache location and other cleanup

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.6
    • 2.6
    • Libraries
    • None
    • MOODLE_26_STABLE
    • MOODLE_26_STABLE
    • w29_MDL-40475_m26_componentcache
    • 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

    Description

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

      Attachments

        Issue Links

          Activity

            People

              skodak Petr Skoda
              skodak Petr Skoda
              Damyon Wiese Damyon Wiese
              Mark Nelson Mark Nelson
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                18/Nov/13