Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #50245, comment 6


Ignore:
Timestamp:
05/26/2020 08:51:13 AM (6 years ago)
Author:
Alignak
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #50245, comment 6

    initial v1  
    1212Frequently, I see sites from clients that use fancy editors and then the page loads like 3 MB worth of shortcodes, which on some servers take a while to generate and cause a TTFB to go over 3, 4, 5 seconds.
    1313
    14 One of my ideas was to cache the_content (often the slowest part of the page) on redis, (I said transient early for the sake of simplicity explaining the concept) and completely bypass the rebuilding process by serving it from cache when available.
     14One of my ideas was to cache {{{the_content}}} (often the slowest part of the page) on redis, (I said transient early for the sake of simplicity explaining the concept) and completely bypass the rebuilding process by serving it from cache when available.
    1515
    16 Obviously it won't work for all possible case scenarios, but for some cases it will and it will speed things up dramatically.
     16Obviously it won't work for all possible case scenarios and it will need a plugin to purge it, but for some cases it will and it will speed things up dramatically when I cannot use page caching.
    1717
    18 I tried the function you posted and it did what I want to do, however one must be careful not to return anything after removing the filters, else the filters still run (according to wp profile) if I return
    19 {{{$content}}} on other condition.
     18I tried the function you posted and it did what I want to do, however one must be careful not to return anything after removing the filters, else the filters still run (according to wp profile) if I return {{{$content}}} on other condition.
    2019
    2120But your answer definitely put me in the right path for what I am trying to achieve and I am very thankful.