Skip to content

Add dummy no-op WP_Object_Cache and use in long-running batch commands. #4617

@gitlost

Description

@gitlost

From @schlessera wp-cli/media-command#62 (comment)

I'd like to first investigate whether we cannot just replace the global variable $wp_object_cache that contains the current WP_Object_Cache instance with a sort of dummy cache object that just not stores anything for these commands.

Utils\wp_clear_object_cache() currently used in wp import and wp export.

wp media regenerate and wp media import are other candidates for dummy WP_Object_Cache use.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions