Skip to content

Performance problem with bigger Moodle installation #4

@mangus

Description

@mangus

Hi!

Very nice theme, but we have a performance problem in our Moodle installation (~6500 courses, ~500 course categories).

When guest user accesses the course page, then the top menu wants to show all courses from Moodle. That makes the page run out of PHP maximum execution time (30 seconds). Also the Javascript, that handles the top menu will make the browser freeze for about 40 seconds (when I increase the PHP max_execution_time parameter).

Fortunately there is a theme setting coursesloggedinonly, but this still adds courses for the quest user.

So i suggest that this setting would also hide courses for the guest user by chancing renderers.php line 283:

$hidecourses = (property_exists($PAGE->theme->settings, 'coursesloggedinonly') && $PAGE->theme->settings->coursesloggedinonly && !isloggedin());

to

$hidecourses = (property_exists($PAGE->theme->settings, 'coursesloggedinonly') && $PAGE->theme->settings->coursesloggedinonly && (!isloggedin() || isguestuser()));

Anyway, thanks for a great theme!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions