0

カササギを使用して、複数の Web サイトから RSS フィードを取得しています。これを行うためにcronジョブを実行する予定なので、キャッシュを無効にしたいと思います。もちろんphpを使用していますが、どうすればこれができるのか疑問に思っていました。どうも

4

2 に答える 2

0

That (Sir Lojik's answer) will work, but rather than hack the Magpie code itself, you should put the define statement in your own code that calls Magpie:

define('MAGPIE_CACHE_ON', false);

That will override Magpie's setting (per the "if (!defined...." stuff in the code) and you won't need to remember to hack Magpie again should a new version ever be released.

It also means that you can have some scripts use the cache and other scripts ignore the cache, should that feature be useful to you.

于 2011-03-11T03:24:30.267 に答える
0

私はrss_fetch.phpで見つけました。init()関数までスクロールし、define('MAGPIE_CACHE_ON'、true);を設定します。定義する('MAGPIE_CACHE_ON'、false);

    function init () {
        if ( defined('MAGPIE_INITALIZED') ) {
            return;
        }
        else {
            define('MAGPIE_INITALIZED', true);
        }

        if ( !defined('MAGPIE_CACHE_ON') ) {
            define('MAGPIE_CACHE_ON', false);
        }
}
于 2010-08-17T19:34:02.610 に答える