jipiboily / monologue

Monologue is a basic blogging engine. It is a Rails mountable engine you can mount in your already existing Rails app, or a in a new one! Enjoy.
http://jipiboily.com/2013/monologue-0-3-0-released-and-monologue-markdown
MIT License
478 stars 196 forks source link

How can I resolve this warning: "Post saved: posts with a future publication date ..." #290

Closed phanviet closed 8 years ago

phanviet commented 8 years ago

Post saved: posts with a future publication date will not be shown unless cache is cleared on that same day. Cache will most probably be generated before that and won't be refreshed automatically.

How can I resolve above message in admin page without disable cache? Could it wipe cache auto?

jipiboily commented 8 years ago

You would have to develop something by yourself. If I recall correctly, this is just generating static files by default, so you can just have a cron job clearing it every at midnight, or every hour or something like that.

You could also develop something fully in Ruby, using https://github.com/tomykaira/clockwork to trigger the cache clearing.

Hope that helps!