日記
古いデータの修正をRSSに反映させたくない (18:53)Edit

過去ログからtDiaryにインポートしたけど未整形の(機械的に変換してインポートしただけで、きちんとtDiary互換のデータ形式にしていない)ものを、暇なときにちょっとずつ直しているんだけど、それがいちいちRSSに新着として掲載されちゃうのを避けたいなー。

ひとまず、

*** makerss.rb.org         2004-09-07 18:49:36.000000000 +0900
--- makerss.rb   2004-09-07 18:48:57.000000000 +0900
***************
*** 69,75 ****
cache.delete( id )
elsif diary.visible? and cache[id]
if cache[id].section.body_to_html != section.body_to_html then
!                    cache[id] = RDFSection::new( id, Time::now, section )
end
end
end
--- 69,77 ----
cache.delete( id )
elsif diary.visible? and cache[id]
if cache[id].section.body_to_html != section.body_to_html then
!                    if Time::now.strftime("%Y%m%d") == date then
!                       cache[id] = RDFSection::new( id, Time::now, section )
!                    end
end
end
end

とかしておこうかな。

これだけじゃだめか

古い記事だからといって、必ずキャッシュされているとは限らないのか。diary.visible? and !cache[id]の時にも同じコードを入れないと。

と思ったけど

根本的にcacheの仕様を間違って理解しているような気もしてきた。まじめにコードを追わないとだめかな。

Published At2004-09-07 00:00Updated At2004-09-07 00:00