Typecho Theme Performance Optimization and Caching

To implement features like Lightbox and code highlighting, I added post-processing code to my blog theme that performs an additional layer of processing on the HTML output after Typecho's Markdown conversion. However, due to the large number of historical articles on my blog and my use of different editors over time (WordPress editor, Baidu UEditor, etc.), my processing logic became quite complex to ensure compatibility with older articles. Combined with the limited performance of my budget VPS, this resulted in longer webpage loading times. I added the following line to my nginx configuration to output server-side processing time in HTTP headers: add_header LT-Latency $request_time ; Initially, this value was around 0.25, meaning each page took about 250ms to process on the server....