mirror of
https://github.com/friendica/friendica
synced 2025-04-23 01:50:10 +00:00
LockDriverFixings
- release Locks in case of failures - adding some cache tests
This commit is contained in:
parent
f148dcabc4
commit
bd2b3b1ef5
4 changed files with 27 additions and 5 deletions
|
@ -53,6 +53,11 @@ class ArrayCache extends AbstractCacheDriver implements IMemoryCacheDriver
|
|||
*/
|
||||
public function clear($outdated = true)
|
||||
{
|
||||
// Array doesn't support TTL so just don't delete something
|
||||
if ($outdated) {
|
||||
return true;
|
||||
}
|
||||
|
||||
$this->cachedData = [];
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue