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

MUC: can get a value from static cache after having purged it

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.5
    • Fix Version/s: 2.4.1
    • Component/s: Caching
    • Labels:
      None

      Description

      The following code generates the output "hello world". The expected output is "hello".

      <?php
      define('CLI_SCRIPT', true);
      require_once('config.php');
       
      $cache = cache::make_from_params(cache_store::MODE_REQUEST, 'foo', 'bar');
      $cache->set('hello', 'world');
      $cache->purge();
      echo 'hello ' . $cache->get('hello') . "\n";

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              samhemelryk Sam Hemelryk
              Reporter:
              brianking Brian King
              Integrator:
              Sam Hemelryk
              Tester:
              Sam Hemelryk
              Participants:
              Component watchers:
              Matteo Scaramuccia, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                14/Jan/13