Skip to content

Conversation

@TheSerapher
Copy link
Contributor

Added a class-local cache to reduce the amount of SQL queries to fetch our websites settings:

  • Create a local class cache with all settings available
  • Try to fetch from cache if available
  • Fallback to SQL if no cache is available

Caches are created during class creation in setting.class.php. Should reduce the SQL overhead a fair bit.

TheSerapher added a commit that referenced this pull request Mar 11, 2014
@TheSerapher TheSerapher merged commit adc7f9f into development Mar 11, 2014
@TheSerapher TheSerapher deleted the settings-class-cache branch March 11, 2014 20:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants