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
991 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

Show comments
  • Ricardo Caiado
    Tue, 18 Aug 2020, 6:05 AM
    @Dan: ok. I will let you know.
  • Wazza
    Thu, 10 Sept 2020, 2:45 PM
    Could you make this plugin more user friendly for large sites? Our Moodle has around 20.000 courses. The report is not working for large Moodle sites or takes forever to load. Perhaps something with pagination? Moodle 3.9.1 btw.
  • Dan Marsden
    Thu, 10 Sept 2020, 4:04 PM
    @richard - pull requests are always welcome! Make sure you have pathtodu set in moodle and you might also want to take a look at the async branch in github for an alternative version.
  • Dennis Felix
    Mon, 28 Sept 2020, 6:29 PM
    Does this plugin still work well in Moodle 3.9.1@Richard?
  • Michael Milette
    Thu, 17 Dec 2020, 12:12 AM
    Hi Dan, I submitted a pull request https://github.com/catalyst/moodle-report_coursesize/pull/23 to address some language issues. We have multi-language courses with multi-language course and category names. Let me know if you have any questions or concerns. I tested the fix with Moodle in English and French.

    Also, any chance that you could update the list of compatibility here on Moodle.org so that we can install the plugin directly into newer versions of Moodle? It is listed as being only compatible up to version 3.7 but obviously works with later versions too.
  • Dan Marsden
    Thu, 17 Dec 2020, 5:00 AM
    Thanks Michael - I've merged that in! smile
  • Muhammad Yani Sidi T
    Sun, 7 Feb 2021, 10:52 PM
    Tested & Work Fine 3.10
  • Milan Sadil
    Sun, 28 Mar 2021, 5:05 PM
    Question regarding Moodle version 3.10. Recently we have upgraded to this version, but the plugin manager keeps reporting report_coursesize as outdated. But the version suggested is lower than that installed:

    - installed plugin version: 2019052800
    - version suggested: 2016051600 (There is a new version 2016051600 available!)

    Wouldn't you know how to remedy this?
  • Dan Marsden
    Mon, 29 Mar 2021, 5:12 AM
    that looks like a bug with Moodle's version checker - I've reported it here: https://tracker.moodle.org/browse/MDLSITE-6427
  • Clovis Tristao
    Fri, 9 July 2021, 11:35 PM
    Please, would you know when we will have a version of this plugin for Moodle 3.9, 3.10?
  • Dan Marsden
    Sat, 10 July 2021, 3:52 AM
    @clovis, the latest versions of all our plugins are in the github repository - this definitely supports 3.9 and and I have it on a 3.11 site but don't think anyone has actually "viewed" the report to make sure it's working but I assume it does. We are currently looking at automating the upload of the latest versions of our plugins to the moodle.org plugins db but in the meantime please download direct from github -thanks.
  • avon blyth
    Mon, 7 Mar 2022, 8:05 PM
    Would it be possible for you to update the plugin on here with the one on github with 3.9 compatibility, as we are running a managed install and the company will only install plug-ins from the Moodle plugin DB.

    Thanks
  • Dan Marsden
    Thu, 28 July 2022, 7:35 AM
    either trigger the scheduled task responsible for generating the stats, or wait for it to run overnight (runs once per night) .... or... in the admin settings for the plugin, set calcmethod to run on load rather than via cron (but keep in mind this report is very slow for larger sites so it may impact on page load time.)
  • Bobby Siegfried
    Thu, 5 Jan 2023, 6:33 AM
    @Dan - Just confirming we are running this in 3.11 and it has been great. One question - the scheduled task default is set to run every minute from 1:01am to 1:59am. I wasn't sure why this was necessary since on our (pretty large) site, it took about 5 minutes to run. So I changed the default to 0 1 * * * so it runs once daily at 1:00am. I know the documentation suggests the default is once daily so I wanted to be sure my change wouldn't adversely affect the report's functionality. Fantastic plugin - really a game changer for us.
  • Dan Marsden
    Mon, 9 Jan 2023, 7:57 AM
    @Bobby - nice catch - I'll get that fixed in the next release! - you're correct that definitely isn't necessary!!
1 2 3 4
Please login to post comments