Eruby and caching


#1

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? :slight_smile:

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