こんにちは。
Quote from: custar at Jan 13, 2007, 03:28 AM
投稿後に $modx->documentListing を更新
NewsPublisher の 289行目以降で
if ($clearcache == 1) {
include_once $modx->config[’base_path’]."manager/processors/cache_sync.class.processor.php";
$sync = new synccache();
$sync->setCachepath("assets/cache/");
$sync->setReport(false);
$sync->emptyCache(); // first empty the cache
if (isset ($modx->config) && !empty ($modx->config)) {
unset ($modx->config);
$modx->getSettings ();
}
}
としてみてください。これで上手く表示されませんか?
やってることは以下の通りです。
1) if の後で siteCache.idx.php が更新される
2) $modx->config を削除
3) 更新された内容を $modx->config に再設定
$modx->config をクリアする関数が見当たらなかったので「削除」して再設定
させました。クリアする方法があるのかもしれません。ご存知の方は教えてく
ださい。