[wp-trac] [WordPress Trac] #45471: Allow caching of parse_blocks results

WordPress Trac noreply at wordpress.org
Tue Aug 30 14:17:55 UTC 2022


#45471: Allow caching of parse_blocks results
--------------------------+--------------------------
 Reporter:  joostdevalk   |       Owner:  francina
     Type:  enhancement   |      Status:  assigned
 Priority:  normal        |   Milestone:  6.1
Component:  Cache API     |     Version:  5.0
 Severity:  normal        |  Resolution:
 Keywords:  dev-feedback  |     Focuses:  performance
--------------------------+--------------------------
Changes (by mehulkaklotar):

 * keywords:  needs-unit-tests needs-patch dev-feedback => dev-feedback


Comment:

 I ran some tests around caching the parsed blocks, results were actually
 not what I thought would be. In most of my results, cached blocks took
 more time compare to just parsing them straight with parse functions and
 return them. I would suggest to not cache it until we can do it more fast
 with core. The Block Parser class can override by developer if they want
 to cache their own block with separate class.

 [[Image(https://prnt.sc/Lpid4y2Ucq_c)]]

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/45471#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list