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

Purging a file store actually purges nothing

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.4
    • Fix Version/s: 2.4
    • Component/s: Caching
    • Labels:
    • Testing Instructions:
      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
    • Affected Branches:
      MOODLE_24_STABLE
    • Fixed Branches:
      MOODLE_24_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      m24_MDL-36512_Purging_file_cachestore_does_not_purge_anything

      Description

      This has been discovered while working on MDL-36363

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                matteo Matteo Scaramuccia
                Reporter:
                matteo Matteo Scaramuccia
                Peer reviewer:
                Sam Hemelryk
                Integrator:
                Dan Poltawski
                Tester:
                Jason Fowler
                Participants:
                Component watchers:
                Matteo Scaramuccia, Amaia Anabitarte, Bas Brands, Carlos Escobedo, Sara Arjona (@sarjona), Víctor Déniz Falcón
              • Votes:
                1 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  3/Dec/12