eruby and caching

  • Thread starter Kasper Johansen
  • Start date
K

Kasper Johansen

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>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top