Project

General

Profile

Feature #12337

Database.php: better caching

Added by Marc Egger 29 days ago. Updated 3 days ago.

Status:
Priorize
Priority:
Normal
Assignee:
Target version:
Start date:
07.04.2021
Due date:
% Done:

0%

Estimated time:
Discuss:

Description

Currently only the mysqli handle is cached but the Database object is recreated often.

Possible changes

  • switch to singleton pattern for Database class  (call Database::getInstance() instead of new Database)
  • make Database a static class  (?)

Both changes need a lot of refactoring.

#1

Updated by Marc Egger 29 days ago

  • Description updated (diff)
#2

Updated by Marc Egger 29 days ago

  • Status changed from New to Priorize
#3

Updated by Carsten Rose 3 days ago

  • Tracker changed from Support to Feature

Also available in: Atom PDF