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


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved 40k session files ?!

    Moodle
    2
    3
    133
    Loading More Posts
    • 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.
    • imc67
      imc67 translator last edited by

      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?

      girish 1 Reply Last reply Reply Quote 0
      • girish
        girish Staff @imc67 last edited by

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

        1 Reply Last reply Reply Quote 1
        • girish
          girish Staff last edited by

          I have moved sessions to redis in the upcoming package.

          1 Reply Last reply Reply Quote 1
          • First post
            Last post
          Powered by NodeBB