Re: LAMP || Apache Cache PHP Source File...

This is a discussion on Re: LAMP || Apache Cache PHP Source File... within the PHP General forums, part of the PHP Programming Forums category; Hey All. Like many intermediate (and higher) level programmers, I've written a LAMP based CMS application to develop sites ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-15-2006
sit1way
 
Posts: n/a
Default Re: LAMP || Apache Cache PHP Source File...

Hey All.

Like many intermediate (and higher) level programmers, I've written a LAMP
based CMS application to develop sites for my clients.

Until recently I had major version control issues; i.e. when making a
change/enhancement to one site, none of the other sites would get updated.
Now I've got a source repository that stores the basic coding framework.
Any new site that uses the CMS will draw on the source code base and, when
applicable, draw on site specific custom class code to override source code
defaults -- totally cool; now at long last, I truly have an application
framework in place.

The main concern I have now is that all sites will now draw on the same code
base; more specifically, each site request for every site calls the CMS
controller PHP script located in the source code repository (via
Mod_Rewrite, Mod_Alias combo). To speed up delivery of the source
respository controller PHP script, I'd like to have Apache cache this file.
Mod_File_Cache doesn't look like it will do the trick as this module only
works with static content, and Mod_Cache seems to require a GET request,
among other requirements, in order to perform file caching.

If anyone has ideas, let me know!

Thanks,

--Noah
Reply With Quote
  #2 (permalink)  
Old 10-15-2006
Ed Lazor
 
Posts: n/a
Default Re: [PHP] Re: LAMP || Apache Cache PHP Source File...

> I'd like to have Apache cache this file.
> Mod_File_Cache doesn't look like it will do the trick as this
> module only
> works with static content, and Mod_Cache seems to require a GET
> request,
> among other requirements, in order to perform file caching.


Apache: reverse proxy
Reply With Quote
  #3 (permalink)  
Old 10-15-2006
sit1way
 
Posts: n/a
Default Re: [PHP] Re: LAMP || Apache Cache PHP Source File...

Hi Ed.

Hmmmm, does mod_proxy perform file caching? It appears to just redirect
urls to and from a proxy server.

I'm already doing this on my Windoze test box:

# redirect domain.com/lookup requests to Site Builder Controller
RewriteCond %{REQUEST_URI} !\.+
RewriteRule ^/(.*) /controller\.php/$1 [PT]
Alias /controller.php c:/htdocs/New_Mind/source/controller.php

which just kicks site requests to the source code controller script. I'm
not sure how reverse proxy directives (ProxyPass, ProxyPassReverse) perform
file caching if at all, which is what I want to do, have Apache store the
controller script in memory at all times...

--Noah




"Ed Lazor" <edlazor@yahoo.com> wrote in message
news:EEA2623B-529D-4E6D-B0ED-DD00781B4F87@yahoo.com...
>> I'd like to have Apache cache this file.
>> Mod_File_Cache doesn't look like it will do the trick as this module
>> only
>> works with static content, and Mod_Cache seems to require a GET request,
>> among other requirements, in order to perform file caching.

>
> Apache: reverse proxy

Reply With Quote
  #4 (permalink)  
Old 10-15-2006
Ed Lazor
 
Posts: n/a
Default Re: [PHP] Re: LAMP || Apache Cache PHP Source File...


> Hmmmm, does mod_proxy perform file caching? It appears to just
> redirect
> urls to and from a proxy server.


Yes.

http://httpd.apache.org/docs/1.3/mod/mod_proxy.html

Note the difference between forward and reverse proxy.

You can also use Squid http://www.squid-cache.org

Note Transparent Caching
Reply With Quote
  #5 (permalink)  
Old 10-16-2006
Richard Lynch
 
Posts: n/a
Default Re: [PHP] Re: LAMP || Apache Cache PHP Source File...



Put it all in subversion and checkout on a regular basis?

On Sun, October 15, 2006 11:14 am, sit1way wrote:
> Hey All.
>
> Like many intermediate (and higher) level programmers, I've written a
> LAMP
> based CMS application to develop sites for my clients.
>
> Until recently I had major version control issues; i.e. when making a
> change/enhancement to one site, none of the other sites would get
> updated.
> Now I've got a source repository that stores the basic coding
> framework.
> Any new site that uses the CMS will draw on the source code base and,
> when
> applicable, draw on site specific custom class code to override source
> code
> defaults -- totally cool; now at long last, I truly have an
> application
> framework in place.
>
> The main concern I have now is that all sites will now draw on the
> same code
> base; more specifically, each site request for every site calls the
> CMS
> controller PHP script located in the source code repository (via
> Mod_Rewrite, Mod_Alias combo). To speed up delivery of the source
> respository controller PHP script, I'd like to have Apache cache this
> file.
> Mod_File_Cache doesn't look like it will do the trick as this module
> only
> works with static content, and Mod_Cache seems to require a GET
> request,
> among other requirements, in order to perform file caching.
>
> If anyone has ideas, let me know!
>
> Thanks,
>
> --Noah
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>



--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 12:56 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0