Changes between Initial Version and Version 1 of Ticket #50245, comment 6
- Timestamp:
- 05/26/2020 08:51:13 AM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #50245, comment 6
initial v1 12 12 Frequently, 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. 13 13 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.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. 15 15 16 Obviously it won't work for all possible case scenarios , but for some cases it will and it will speed things up dramatically.16 Obviously 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. 17 17 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. 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 {{{$content}}} on other condition. 20 19 21 20 But your answer definitely put me in the right path for what I am trying to achieve and I am very thankful.