Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Moodle
  3. 40k session files ?!

40k session files ?!

Scheduled Pinned Locked Moved Solved Moodle
3 Posts 2 Posters 678 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • imc67I Offline
      imc67I Offline
      imc67
      translator
      wrote on last edited by
      #1

      I discovered that a backup of Moodle (in production but only a few test users) took extremely long, I've found the reason why: in the data/moodledata/sessions there are 40k+ session files, each 2KB all together more than 80MB!

      How can we manage this huge amount or can this be stored in db?

      girishG 1 Reply Last reply
      0
      • imc67I imc67

        I discovered that a backup of Moodle (in production but only a few test users) took extremely long, I've found the reason why: in the data/moodledata/sessions there are 40k+ session files, each 2KB all together more than 80MB!

        How can we manage this huge amount or can this be stored in db?

        girishG Offline
        girishG Offline
        girish
        Staff
        wrote on last edited by
        #2

        @imc67 I will try moving it to redis - https://docs.moodle.org/310/en/Session_handling#Database_session_driver

        1 Reply Last reply
        1
        • girishG Offline
          girishG Offline
          girish
          Staff
          wrote on last edited by
          #3

          I have moved sessions to redis in the upcoming package.

          1 Reply Last reply
          1
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Bookmarks
            • Search