Skip to content

Create apcu#12288

Merged
danielkerr merged 7 commits intoopencart:masterfrom
BuslikDrev:patch-2
Jul 4, 2023
Merged

Create apcu#12288
danielkerr merged 7 commits intoopencart:masterfrom
BuslikDrev:patch-2

Conversation

@BuslikDrev
Copy link
Copy Markdown
Contributor

@BuslikDrev BuslikDrev commented Apr 23, 2023

@danielkerr
Copy link
Copy Markdown
Member

we already have apc

@danielkerr danielkerr merged commit b8cd8be into opencart:master Jul 4, 2023
@ADDCreative
Copy link
Copy Markdown
Contributor

Doesn't look like it supports using just a * wildcard, such as the one in the backup restore.

$this->cache->delete('*');

File cache would have the same issue as the fix #9739 never made it to the master branch.

@danielkerr
Copy link
Copy Markdown
Member

Yes so don't use it.

@ADDCreative
Copy link
Copy Markdown
Contributor

@danielkerr Which to use then, even the default file cache won't support:

$this->cache->delete('*');

public function delete(string $key): void {
$files = glob(DIR_CACHE . 'cache.' . preg_replace('/[^A-Z0-9\._-]/i', '', $key) . '.*');
if ($files) {

@BuslikDrev BuslikDrev deleted the patch-2 branch July 31, 2023 17:13
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