XPressME Integration Kit

Trac

Changeset 135 for trunk/wp-config.php


Ignore:
Timestamp:
Mar 23, 2009, 9:39:37 PM (15 years ago)
Author:
toemon
Message:

ブロックキャッシュの削除、ブロックキャッシュ更新タイミングの処理追加・変更 #65 #73
同じモジュール名が付くブロックキャッシュから、現在有効になっているブロックを除いたものを削除
ブログホーム閲覧時、ブロックのレンダリングの内容とキャッシュの内容のチェックサム(MD5)を取り比較、異なっていればキャッシュをリフレッシュする。
(ファイル書き込み回数を減らすため)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-config.php

    r133 r135  
    9595        //When adding, and changing and deleting Post & Comment, block cache is refreshed by add_action at any time.  
    9696        // This Function in xpressme plugin 
    97         if (!is_block_cache_normal()) block_cache_refresh(); 
     97        xpress_unnecessary_block_cache_delete(); 
     98        if (is_home()) xpress_block_cache_refresh(); 
    9899        exit();         // The return to wp-blog-header.php is stolen here 
    99100} 
Note: See TracChangeset for help on using the changeset viewer.