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

Purging a file store actually purges nothing

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • 2.4
    • 2.4
    • Caching
    • MOODLE_24_STABLE
    • MOODLE_24_STABLE
    • m24_MDL-36512_Purging_file_cachestore_does_not_purge_anything
    • Hide
      1. Open Site administration ► Plugins ► Caching ► Configuration
      2. Go to the dataroot filesystem and take note of the time of the folders/files representing the cache e.g. # cd $CFG->cachedir/cache/cachestore_file/default_application && ls -lh */
      3. Purge the Default file store for application caches
      4. Check the file time: it should return the current time
      5. Create a new file store (Add instance at the end of the row identified by column Plugin = File cache) in a Cache path really different from the default one e.g. /tmp/moodle-master-cache-file1
      6. Edit the Language string cache mapping and point it to the new file store
      7. Again: take note of the time of the cached files, wait at least 1 minute (to take advantage of reading the time with ls -lh), purge the new file store and re-check the time of the files
      Show
      Open Site administration ► Plugins ► Caching ► Configuration Go to the dataroot filesystem and take note of the time of the folders/files representing the cache e.g. # cd $CFG->cachedir/cache/cachestore_file/default_application && ls -lh */ Purge the Default file store for application caches Check the file time: it should return the current time Create a new file store ( Add instance at the end of the row identified by column Plugin = File cache ) in a Cache path really different from the default one e.g. /tmp/moodle-master-cache-file1 Edit the Language string cache mapping and point it to the new file store Again: take note of the time of the cached files, wait at least 1 minute (to take advantage of reading the time with ls -lh ), purge the new file store and re-check the time of the files

      This has been discovered while working on MDL-36363

            matteo Matteo Scaramuccia
            matteo Matteo Scaramuccia
            Sam Hemelryk Sam Hemelryk
            Dan Poltawski Dan Poltawski
            Jason Fowler Jason Fowler
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

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