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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
> 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 |
|
|||
|
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 |
|
|||
|
> 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 |
|
|||
|
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? |