[wp-trac] [WordPress Trac] #50101: Server side Gutenberg block add example cache

WordPress Trac noreply at wordpress.org
Wed May 6 11:16:13 UTC 2020


#50101: Server side Gutenberg block add example cache
-------------------------------------+-----------------------------
 Reporter:  nextendweb               |      Owner:  (none)
     Type:  defect (bug)             |     Status:  new
 Priority:  normal                   |  Milestone:  Awaiting Review
Component:  Editor                   |    Version:
 Severity:  normal                   |   Keywords:
  Focuses:  javascript, performance  |
-------------------------------------+-----------------------------
 If you have a block which has {{{render_callback}}}, so rendered at server
 side and you define {{{example}}} in {{{registerBlockType}}} then every
 time when you move your mouse in the add panel over your block, a new
 request will be made to the server to render the module.

 I think this is unnecessary overload to the server and you could cache the
 first response.

 Screen recording: https://www.youtube.com/watch?v=PidSzymx73I

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/50101>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list