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

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

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

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

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