futtta / ao_critcss_aas

Autoptimize power-up to integrate with criticalcss.com
9 stars 1 forks source link

Optimize get_page_templates calls #121

Closed kraftpixel closed 4 years ago

kraftpixel commented 4 years ago

Prevent frequent disk reads by using transient cache for get_page_templates.

Original issue with more details at: https://wordpress.org/support/topic/get_page_templates-consumes-too-much-io-for-each-page-request/

futtta commented 4 years ago

Super @kraftpixel , but the power-up will be discontinued as AO CCSS is now integrated in AO (as from 2.7), could you do the PR there (see https://github.com/futtta/autoptimize/blob/beta/classes/autoptimizeCriticalCSSCore.php#L205-L209) ?

kraftpixel commented 4 years ago

Oh thanks, I missed that.. I have the older version..

kraftpixel commented 4 years ago

Created new PR at https://github.com/futtta/autoptimize/pull/326