2015-06-11, 09:28 AM
The "datacache" class passes a variable "$silent" to the constructor and calls "connect" afterwards without any parameters. However the different classes ignore that:
APC (ok):
-> function __construct($silent)
-> function connect()
Disk (wrong):
-> function connect($silent)
eaccelerator (partly ok; others are like this too):
-> function eacceleratorCacheHandler($silent): is a valid constructor but "__construct" should be used instead
-> function connect()
A new interface should be added which has all the cache functions and forces the first version imho, similar to what @Euan did with the database classes.
APC (ok):
-> function __construct($silent)
-> function connect()
Disk (wrong):
-> function connect($silent)
eaccelerator (partly ok; others are like this too):
-> function eacceleratorCacheHandler($silent): is a valid constructor but "__construct" should be used instead
-> function connect()
A new interface should be added which has all the cache functions and forces the first version imho, similar to what @Euan did with the database classes.