gocodebox / gocodebox/lifterlms

Optimize getting of settings

Open
#473 3 comments 0 reactions 0 assignees View on GitHub
hacktoberfest help wanted Type: Enhancement
Dominant language
PHP
Stars
212
Forks
140
Avg merge
2d 14h
Merged PRs (30d)
19

Description

![options](https://user-images.githubusercontent.com/403283/37106270-ad894d48-2231-11e8-9872-ac4b3c2401d3.png)

Looking on course page I see 4 query to get 4 different values.
This 4 queries are made in different pages, usually for this kind of issues is better to have serialized values on the settings to do a unique query and have an array.
Actually I think that a solution can be cache all the options at every load of the page in a global var or do a SQL query that get all the options of the plugin.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.