# Eruby and caching

**URL:** <https://www.ruby-forum.com/t/eruby-and-caching/159262>\
**Category:** Ruby\
**Created:** [February 2, 2009, 8:25pm UTC](https://www.ruby-forum.com/t/eruby-and-caching/159262 "2009-02-02T20:25:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kasper\_Johansen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/bc79bd/32.png) [@Kasper\_Johansen](https://www.ruby-forum.com/u/Kasper_Johansen)\
**Post date:** [February 2, 2009, 8:25pm UTC](https://www.ruby-forum.com/t/eruby-and-caching/159262/1 "2009-02-02T20:25:51Z")

</div>

Hi group.

First of all, I am new in Ruby.

I have tried to set up my Apache webserver (Debian) with mod\_ruby and  
erubi. At first everything seemed fine, but when I began developing, I  
noticed that some pages didnt update, when I saved new code.

I then refreshed a couple of times or waited a couple of minutes, and  
then the code would reflect as I would expect (based on the code of  
course).

It looks like some form of caching, but I cant really find anything on  
Google about eruby and caching.

I really like eruby and the debugging features, but it is really  
annoying, that the output wont update instantly after I change the code.  
It there some way to fix this? And if so, how? 🙂

I am using Debian Lenny, and I have tried the webpage with Firefox and  
Konqueror, which both shows the same problem.

My “eruby.conf” for Apache2 looks like this:  
  
AddType text/html .rhtml  
RubyRequire apache/ruby-debug  
RubyRequire apache/eruby-debug

\<Files \*.rbx\>  
SetHandler ruby-object  
RubyHandler Apache::RubyDebug.instance  
  
\<Files \*.rb\>  
SetHandler ruby-object  
RubyHandler Apache::RubyDebug.instance  
  
\<Files \*.rhtml\>  
SetHandler ruby-object  
#RubyHandler Apache::ERubyRun.instance  
RubyHandler Apache::ERubyDebug.instance
