LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Feedback/Feature Requests > Check cache, then dispatch

Reply
 
Thread Tools Display Modes
  #1  
Old 05-23-2007, 07:02 AM
blsbls blsbls is offline
New Member
 
Join Date: May 2007
Posts: 1
Default Check cache, then dispatch

Imagine a weblog-like page that allows users to post comments which show up under the main article text. That is, the article and the comments appear on the same page. There is no other dynamic content besides the comments. Thus, the page can be cached in between comment postings.

If I dispatch requests to the backend (python) server to determine the freshness (ETag, last-modified) of the page, then my performance will be limited by the performance of the python server. Instead, I would like to implement the following logic (ignoring error handling for now):

For every GET, If /dev/shmem/path/to/page.html does not exist, dispatch the request to the back end, which will generate /dev/shmem/path/to/page.html. Then, send /dev/shmem/path/to/page.html.

Importantly, if the cached page already exists, then I don't want to contact the back end server at all.

What is the best way to implement this strategy with Litespeed? Or, at least, is it possible? I know how to do it with nginx.

Thanks!
Reply With Quote
  #2  
Old 05-23-2007, 07:28 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,585
What you described is what Rails page cache does, and our Rails solution follow the same route. It is there already.
Reply With Quote
Reply

Thread Tools
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 On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 03:00 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.