#55080 closed enhancement (fixed)
Introduce a new `wp_cache_flush_runtime()` method
| Reported by: | tillkruess | Owned by: | spacedmonkey |
|---|---|---|---|
| Priority: | normal | Milestone: | 6.0 |
| Component: | Cache API | Version: | 6.0 |
| Severity: | minor | Keywords: | has-patch commit needs-docs has-dev-note |
| Cc: | Focuses: | performance |
Description
From the Object Cache Performance team: https://github.com/WordPress/performance/issues/81
Allowing users to flush the runtime (in-memory) cache, without flushing the entire persistent cache is an often requested feature for apps running long processes, such as Action Scheduler or WP-CLI.
Change History (14)
This ticket was mentioned in PR #2282 on WordPress/wordpress-develop by tillkruss.
5 years ago
#1
spacedmonkey commented on PR #2282:
5 years ago
#3
Am I missing something here. There is implementation in WP_Object_Cache class found in class-wp-object-cache.php.
There should be a flush_runtime() method and have some implementation.
spacedmonkey commented on PR #2282:
5 years ago
#4
Am I missing something here. There is implementation in WP_Object_Cache class found in class-wp-object-cache.php.
There should be a flush_runtime() method and have some implementation.
tillkruss commented on PR #2282:
5 years ago
#5
There should be a
flush_runtime()method and have some implementation.
We can do that, but since this cache implementation is non-persistent it is identical to flush. Would you want a shim for that anyhow?
spacedmonkey commented on PR #2282:
5 years ago
#6
Would you want a shim for that anyhow?
Second thoughts, no point.
#7
@
4 years ago
@tillkruess @spacedmonkey Latest PR https://github.com/WordPress/wordpress-develop/pull/2282 looks good to me!
spacedmonkey commented on PR #2282:
4 years ago
#10
Merged.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Implementation of the new
wp_cache_flush_runtime()method to flush the runtime memory.See https://github.com/WordPress/performance/issues/81
Trac ticket: https://core.trac.wordpress.org/ticket/55080