Code Monkey home page Code Monkey logo

Comments (14)

FooBarWidget avatar FooBarWidget commented on May 24, 2024

From honglilai on April 13, 2008 12:20:54

Hi. Could you try the latest development version (i.e. the one on the git repository)
and check whether this problem has been solved for you? Thanks.

Please note however that Passenger will not be able to accelerate page cache files if
you use a non-default page cache directory.

from passenger.

FooBarWidget avatar FooBarWidget commented on May 24, 2024

From honglilai on April 13, 2008 12:21:30

Status: Started

from passenger.

FooBarWidget avatar FooBarWidget commented on May 24, 2024

From netzdamon on April 13, 2008 13:19:10

I just tried the latest from git and it solved the issue for me not sure
about Albert.

Curious why Passenger can't accelerate the page cache files if there not in the
default page cache directory?

Great work on it thus far.

from passenger.

FooBarWidget avatar FooBarWidget commented on May 24, 2024

From honglilai on April 13, 2008 14:37:18

That's because Passenger assumes that page cache files have the filename
'public/(some URI).html', which is the case if the default page cache directory is
used. To properly autodetect custom page cache directories, some pretty complex code
must be written.

Status: Fixed

from passenger.

FooBarWidget avatar FooBarWidget commented on May 24, 2024

From albert.ramstedt on April 14, 2008 00:53:14

But using a mod_rewrite setting, it would work, right?

from passenger.

FooBarWidget avatar FooBarWidget commented on May 24, 2024

From honglilai on April 14, 2008 01:35:18

Yes, it should.

from passenger.

FooBarWidget avatar FooBarWidget commented on May 24, 2024

From honglilai on April 14, 2008 15:34:31

Labels: Milestone-1.0.2

from passenger.

FooBarWidget avatar FooBarWidget commented on May 24, 2024

From tomasj on November 25, 2008 12:02:15

I'm not sure if it's just me going insane, but it appears like I cannot in any way use mod_rewrite to rewrite the
empty url "" (the start page) in combination with Passenger — anything else rewrites do work with, just not the
start page. Could this be true, can anyone confirm?

from passenger.

FooBarWidget avatar FooBarWidget commented on May 24, 2024

From budstikkamedia on February 02, 2009 01:06:11

Sorry to bring this up again, but maybe we could have an Apache configuration we could set to tell Passenger
what directory to look for caches in?
I really dislike the idea of cluttering the /public directory with cached pages, and prefer the quite common
/public/cache directory instead. And afaik using rewrites i deprecated, so that leaves us with few other options
than using rails without accelerated html :(

I propose "RailsCacheDir" as configuration option.

from passenger.

FooBarWidget avatar FooBarWidget commented on May 24, 2024

From honglilai on February 02, 2009 01:40:59

At the moment we've allocated our resources and time towards other issues that are
deemed more important to us. If you would like to have this issue resolved more
quickly, please feel free to help out, e.g. by sending a patch.

Labels: -Milestone-1.0.2

from passenger.

FooBarWidget avatar FooBarWidget commented on May 24, 2024

From ralf.ebert on June 15, 2009 03:46:59

Has someone a workaround for this?
The mod_rewrite statements as described in http://www.railsenvy.com/2007/2/28/rails-caching-tutorial#moving doesn't seem to work
with mod_rails.
I guess relocating the cache directory using page_cache_directory is pretty common,
as it allows to sweep the cache easily. It's just more convenient not to clutter up
the public dir with cache files.
It would be great if mod_rails could pick up this setting automatically.

from passenger.

FooBarWidget avatar FooBarWidget commented on May 24, 2024

From matts.possiamo on July 15, 2009 16:55:40

While I understand that you may not have resources for updating passenger to support
cached pages outside of the public dir, could you at least share your recommended
apache directives for using a dir other than public?

Thanks,
Matt

from passenger.

FooBarWidget avatar FooBarWidget commented on May 24, 2024

From honglilai on July 15, 2009 23:55:19

We do not use non-standard page caching directories in production so we do not have
recommended Apache directives for this. Please experiment with mod_rewrite rules. I
believe it had been done before but I can't remember who it was that did it.

from passenger.

FooBarWidget avatar FooBarWidget commented on May 24, 2024

From tomasj on July 16, 2009 02:31:18

I've had some success with these mod_rewrite rules:

RewriteBase /

IMAGES CACHING

RewriteCond %{REQUEST_FILENAME} !-s
RewriteCond %{DOCUMENT_ROOT}/cache%{REQUEST_URI} -s
RewriteRule ^(.*)$ /cache/$1 [L]

PAGE CACHING

RewriteCond %{REQUEST_FILENAME} !-s
RewriteCond %{DOCUMENT_ROOT}/cache%{REQUEST_URI}.html -s
RewriteRule ^(.*)$ /cache/$1 [L]

FRONT PAGE CACHING

RewriteCond %{REQUEST_URI} "/"
RewriteCond %{REQUEST_FILENAME} !-s
RewriteCond %{DOCUMENT_ROOT}/cache/index.html -s
RewriteRule ^$ /cache/index.html [L]

from passenger.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.