# Expire cache at a certain time?

**URL:** <https://www.ruby-forum.com/t/expire-cache-at-a-certain-time/106738>\
**Category:** Radiant CMS\
**Created:** [June 13, 2007, 6:01pm UTC](https://www.ruby-forum.com/t/expire-cache-at-a-certain-time/106738 "2007-06-13T18:01:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rpheath](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/73ab20/32.png) [@rpheath](https://www.ruby-forum.com/u/rpheath)\
**Post date:** [June 13, 2007, 6:01pm UTC](https://www.ruby-forum.com/t/expire-cache-at-a-certain-time/106738/1 "2007-06-13T18:01:38Z")

</div>

Is it possible to have the cache for a certain page expire at a  
certain time?

Example:

I have a page that pulls data from an external RSS feed that is  
updated every Monday. I’d like the page to clear the cache on Monday  
morning only so that it displays the most current results. Currently  
I have my cache expiry set to 30 days.

Thanks…  
Ryan

---

<div class="post-metadata">

**Author:** ![rpheath](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/73ab20/32.png) [@rpheath](https://www.ruby-forum.com/u/rpheath)\
**Post date:** [June 13, 2007, 11:52pm UTC](https://www.ruby-forum.com/t/expire-cache-at-a-certain-time/106738/2 "2007-06-13T23:52:45Z")

</div>

One fast and effective solution is to have a periodic external process  
do  
the cache cleaning. On unix systems a simple ‘find’ command launched by  
‘cron’ does the job.

```
/AITOR
```
