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

Unable to delete a Redis cache instance

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.0
    • 4.0
    • Caching
    • MOODLE_400_STABLE
    • MOODLE_400_STABLE
    • MDL-74285-master
    • Hide

      Requirements

      1. A working Redis server (or follow steps 1 and 2 from MDL-74072 to set up one)
      2. The php-redis pecl extensions

      Testing

      1. Log in as admin
      2. Navigate to Site admin -> Caching -> Configuration
      3. Add a new Redis cache instance which points to your working redis serer
      4. Find the newly created server
      5. Click the "Delete store" link and confirm
        1. Confirm that the store was removed without error
      Show
      Requirements A working Redis server (or follow steps 1 and 2 from MDL-74072 to set up one) The php-redis pecl extensions Testing Log in as admin Navigate to Site admin -> Caching -> Configuration Add a new Redis cache instance which points to your working redis serer Find the newly created server Click the "Delete store" link and confirm Confirm that the store was removed without error

      After testing MDL-74072 I went to clean up my testing site and delete the newly created Redis cache instance, but because the cache is not used before deleting it, I get the following:

      Exception - Call to a member function get_ttl() on null
      

      Stacktrace below:

      Stack trace:
      line 457 of /cache/stores/redis/lib.php: Error thrown
      line 471 of /cache/stores/redis/lib.php: call to cachestore_redis->purge()
      line 393 of /cache/locallib.php: call to cachestore_redis->instance_deleted()
      line 540 of /cache/classes/local/administration_display_helper.php: call to cache_config_writer->delete_store_instance()
      line 387 of /cache/classes/local/administration_display_helper.php: call to core_cache\local\administration_display_helper->action_deletestore()
      line 53 of /cache/admin.php: call to core_cache\local\administration_display_helper->perform_cache_actions()
      

            quen Sam Marshall
            dobedobedoh Andrew Lyons
            Simey Lameze Simey Lameze
            Shamim Rezaie Shamim Rezaie
            Ferran Recio Ferran Recio
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 hours, 34 minutes
                3h 34m

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