Skip to content

Future support of wp_cache_flush_group() #170

@moscatovida

Description

@moscatovida

Hi,

It seems that the current version does not support flushing groups of keys (e. g. via wp_cache_flush_group()). Hower, this would be important, because some WP plugins delete transients by direct DB calls using wildcards.

Here is an example from Swift Performance:

$wpdb->query("DELETE FROM {$wpdb->options} WHERE option_name LIKE '_transient_swift_performance_%'");

As the exact names of the keys are not known at the moment of deletion, it's impossible to flush these keys when they reside in memcached. To flush keys in memcached, the exact name of these keys needs to be know, right?

Are there any plans to support wp_cache_flush_group() in the near future? Or any known workarounds for situation like this?

Thanks for your effort and all the work you've been doing so far!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions