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

cachestore_file throws exception when returning boolean false cached value

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.11.7
    • 3.11.6
    • Caching

      To reproduce:

      1. Install the attached plugin in local/cachetest
      2. Execute php local/cachetest/test.php

      The plugin simply caches the boolean value false, then tries to return it from the cache. The is problematic for situations where you do some expensive operation to determine a boolean result. For example, detecting if there are more than "n" occurrences of a given content hash in the files table.

            cameron1729 cameron1729
            cameron1729 cameron1729
            Adrian Greeve Adrian Greeve
            Andrew Lyons Andrew Lyons
            Angelia Dela Cruz Angelia Dela Cruz
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 30 minutes
                30m

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