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

Cache admin UI: make it easy re-purge the cache you just purged

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.5.5, 3.6.3
    • Fix Version/s: 3.8
    • Component/s: Caching
    • Testing Instructions:
      Hide
      1. Log in as admin.
      2. Go to Admin -> Plugins -> Caching -> Configuration
      3. Click on the Purge link by a store.
      4. Verify the confirmation notice at the top tells you which store was purged, and has a "Purge again" link.
      5. Verify that the "Purge again" link works.
      6. Click on the Purge link by a cache definition.
      7. Verify the confirmation notice at the top tells you which cache was purged, and has a "Purge again" link.
      8. Verify that the "Purge again" link works.
      Show
      Log in as admin. Go to Admin -> Plugins -> Caching -> Configuration Click on the Purge link by a store. Verify the confirmation notice at the top tells you which store was purged, and has a "Purge again" link. Verify that the "Purge again" link works. Click on the Purge link by a cache definition. Verify the confirmation notice at the top tells you which cache was purged, and has a "Purge again" link. Verify that the "Purge again" link works.
    • Affected Branches:
      MOODLE_35_STABLE, MOODLE_36_STABLE
    • Fixed Branches:
      MOODLE_38_STABLE
    • Pull Master Branch:

      Description

      When doing mobile development of plugins, you need to purge the tool_mobile/plugininfo every time you change the CSS.

      You can just use Purge all caches, but that is horribly slow.

      Of you can go to the cahce admin page, find the right 'Purge' link in the middle of the page (which is slow) but then the actual purging is faster.

      It occurred to me that there are probably other cases, when you are tring to fix a specific thing, where you might need to purge the same cache a few times in a row. Therefore, I propose to change the "Successfully purged the requested definition." Notification to instead say something like "Successfully purged the "This stores the list of plugins with mobile addons (tool_mobile/plugininfo) cache. Purge again."

        Attachments

        1. MDL-65492_step#5.mp4
          656 kB
        2. MDL-65492_step#8.mp4
          702 kB
        3. MDL-65492.jpg
          MDL-65492.jpg
          31 kB

          Activity

            People

            • Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                11/Nov/19

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day
                1d