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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.4.1
    • 2.5
    • Caching
    • None

      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";

            samhemelryk Sam Hemelryk
            brianking Brian King
            Sam Hemelryk Sam Hemelryk
            Sam Hemelryk Sam Hemelryk
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.