Forum: Ruby eruby and caching

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
F4182d58570b11f50ad0baf667b80300?d=identicon&s=25 Kasper Johansen (Guest)
on 2009-02-02 20:25
(Received via mailing list)
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:
<IfModule mod_ruby.c>
   AddType text/html .rhtml
   RubyRequire apache/ruby-debug
   RubyRequire apache/eruby-debug

   <Files *.rbx>
      SetHandler ruby-object
      RubyHandler Apache::RubyDebug.instance
   </Files>
   <Files *.rb>
      SetHandler ruby-object
      RubyHandler Apache::RubyDebug.instance
   </Files>
   <Files *.rhtml>
      SetHandler ruby-object
      #RubyHandler Apache::ERubyRun.instance
      RubyHandler Apache::ERubyDebug.instance
   </Files>
</IfModule>
This topic is locked and can not be replied to.