Changes between Initial Version and Version 1 of Ticket #58286
- Timestamp:
- 05/10/2023 02:05:18 PM (17 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #58286 – Description
initial v1 1 1 I created 2 external links in the block editor. This created 2 different transients in the database in wp_options, that have a different dynamic part at the end: 2 2 {{{ 3 3 _site_transient_g_url_details_response_ab62baf1c770821f259d255001f7a9b9 4 4 _site_transient_g_url_details_response_f6ce245428f26d29c355a44ceb3b9bf3 5 }}} 5 6 6 7 This transient contains "g_url_details_response_" and is produced by file class-wp-rest-url-details-controller.php … … 17 18 18 19 I tryed it using this filter: 20 {{{ 19 21 apply_filters( "pre_set_site_transient_{$transient}", mixed $value, string $transient ) 22 }}} 20 23 21 24 But it needs full transient name, which is created dynamically using this function 22 25 {{{ 23 26 private function build_cache_key_for_url( $url ) { 24 25 26 27 return 'g_url_details_response_' . md5( $url ); 28 } 29 }}} 27 30 from file class-wp-rest-url-details-controller.php 28 31