Course size

Reports ::: report_coursesize
Maintained by Dan Marsden, Peter Bulmer, Catalyst IT
This plugin provides approximate disk usage by Moodle courses.
Latest release:
5979 sites
1k downloads
97 fans
Current versions available: 7

This plugin provides approximate disk usage by Moodle courses.


There are 2 known shortcomings with this plugin

  • If the same file is used multiple times within a course, the report will report an inflated disk usage figure as the files will be counted each time even though Moodle only stores one copy of the file on disk.
  • If the same file is used within multiple courses it will be counted in each course and there is no indicator within the report to inform the user if they delete the course or files within the course they will not free that amount from disk.

It should be possible to improve the report to address these issues - we'd greatly appreciate any patches to improve the plugin!

To improve the performance of the total disk usage check, you should configure the pathtodu in your installation:
https://docs.moodle.org/en/System_paths#Path_to_du

Screenshots

Screenshot #0

Contributors

Dan Marsden (Lead maintainer)
Peter Bulmer: Developer
Please login to view contributors details and/or to contact them

Comments RSS

Comments

  • Jari Vilkman
    Thu, 21 June 2018, 4:00 PM
    Hello,

    1. This plugin shows 200 less courses that I have in total (show on the moodle registration page), what can explain this?

    2. What does this mean "Courses that do not use any file storage have been excluded from this report." I can see 0MB courses on the list also.
  • Dan Marsden
    Thu, 21 June 2018, 4:42 PM
    This plugin looks at the files table in moodle - if your courses do not have any records in the files table they will not show in the report. It is also possible that some courses have entries in the file table with 0 filesize on disk and the report also performs some rounding.
  • Chris Pratt
    Fri, 20 July 2018, 5:14 PM
    Hi

    Just ran the latest version and it reports the courses fine, but when I click 'view stats' each course shows 0MB for each category listed?
  • Dan Marsden
    Mon, 23 July 2018, 4:47 AM
    @chris - that's a bug with the sql being used to generate the stats - there's a fix in the github branches for it.
  • Igor Bursin
    Sat, 7 Dec 2019, 9:47 PM
    Is this plugin compatible with Moodle 3.8?
  • Dan Marsden
    Mon, 9 Dec 2019, 6:01 AM
    should be - but no one I know has tested it to make sure. Feel free to help by testing and reporting any bugs/issues you find to our bug tracker (linked above.)
  • Steven Geggie
    Fri, 17 Apr 2020, 12:42 AM
    We are seeing enormous usage by users....but when we check their private files, there is relatively few items...
    Any thoughts?
  • Dan Marsden
    Fri, 17 Apr 2020, 3:37 AM
    typically that means they have a lot of backups stored in the user private backup area.
  • Sébastien Viel
    Sat, 25 Apr 2020, 10:05 PM
    Hi, thank you for your plugin, it's very useful ! For information, I installed it on Moodle 3.8.2 and it works fine.
  • Star
    Thu, 2 July 2020, 9:15 AM
    Is current version 2019052800 compatible with Moodle V3.8.3?
  • Dan Marsden
    Thu, 2 July 2020, 10:39 AM
    @Jinxing Chen - yeah, we've got the same version on a few 3.9 sites already too - must be time to update the plugins db!
  • Mahmood Naderan
    Tue, 4 Aug 2020, 9:43 PM
    Hello and thanks for this good plugin. Problem I see is that I don't know how to refresh the plugin. For example, I have found out that a the file sizes in private space of a user, X, is large and he has deleted the files. When I rerun the course size in report section, I see previous results quickly. Seems that it has cached the previous results. I also tried to purge all cache via Site administration-> Development-> Purge caches but has no effect.
  • Dan Marsden
    Wed, 5 Aug 2020, 5:32 AM
    @Mahmood - the current version of this plugin shows "live" data - it doesn't cache specific disk usage like private file areas, but Moodle doesn't physically remove files straight away on deletion - it "flags" them for deletion and then relies on various cron processes to delete the files. Try asking in the forums for more details or do a search for "Moodle Trash files" and it might show up a few related posts.
  • Ricardo Caiado
    Tue, 18 Aug 2020, 4:38 AM
    Is it compatible with 3.9+ version of Moodle?
  • Dan Marsden
    Tue, 18 Aug 2020, 6:03 AM
    @Ricardo - we're not aware of any issues using the latest version (in github) on a 3.9 site. If you run into any issues feel free to report them to our github tracker. thanks.
Please login to post comments