Course size

Reports ::: report_coursesize
Maintained by Dan Marsden, Peter Bulmer, Catalyst IT
This plugin provides approximate disk usage by Moodle courses.
Latest release:
5838 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

Show comments
  • Dan Marsden
    бс, 10 қыр. 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
    дс, 28 қыр. 2020, 6:29 PM
    Does this plugin still work well in Moodle 3.9.1@Richard?
  • Michael Milette
    бс, 17 жел. 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
    бс, 17 жел. 2020, 5:00 AM
    Thanks Michael - I've merged that in! Күлкі
  • Muhammad Yani Sidi T
    жс, 7 ақп. 2021, 10:52 PM
    Tested & Work Fine 3.10
  • Milan Sadil
    жс, 28 нау. 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
    дс, 29 нау. 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
    жм, 9 шіл. 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
    сб, 10 шіл. 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
    дс, 7 нау. 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
    бс, 28 шіл. 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
    бс, 5 қаң. 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
    дс, 9 қаң. 2023, 7:57 AM
    @Bobby - nice catch - I'll get that fixed in the next release! - you're correct that definitely isn't necessary!!
  • C'est moi :-)
    сс, 30 сәу. 2024, 3:22 PM
    Hi,
    Is it planned to update this plugin to officialy support recent and supported Moodle versions? If yes, do you have an idea of when it should be the case?
  • Dan Marsden
    ср, 1 мам. 2024, 8:37 AM
    @Severin, the latest versions of all our plugins are in the github repository - this definitely supports 4.1 and we don't currently have any reports of it not working in newer versions, although there are reports of php warnings when debugging is turned on and when using PHP 8.1 - what's more helpful than "Is this plugin supported" is reports in our github issues tracker stating "I've tested this in version X and it works - can you please bump the version in the plugins db" or... "this doesn't work in version x, here are the issues I found."
1 2 3 4
Please login to post comments