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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > LiteSpeed Cache > LSCache WordPress/IP.Board/Magento & General .htaccess q

Reply
 
Thread Tools Display Modes
  #1  
Old 07-20-2011, 11:11 AM
cmanns cmanns is offline
Senior Member
 
Join Date: Jun 2010
Posts: 100
Default LSCache WordPress/IP.Board/Magento & General .htaccess q

Is there any general style to making php sites with friendly url's and such to be cache'd?

Also on a shared cpanel system, clicking cache requests with cookies (Loading a page with cookies) makes all vhosts cache alot (Forums and such with logged in users)

that can be set per vhost if left to no in the lsws admin panel?
__________________
-William C.Manns Owner of XenServ Co
Need LiteSpeed Hosting, Server Tuning, or Other Help I'm your guy

http://xenserv.com http://evilpuma.com
Reply With Quote
  #2  
Old 07-20-2011, 11:56 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,337
put cache rules in front of other rewrite rules (for friendly url's).

Quote:
# excluding certain URLs
RewriteCond %{REQUEST_URI} !/(login|register|usercp|private|profile|cron|image) \.php$

# cache for 2 mins for php pages only
RewriteRule (.*\.php)?$ – [E=Cache-Control:max-age=120]

# rewrite rules for friendly url's
RewriteRule ....
Will get back to you regarding cache with cookies in a bit.
Reply With Quote
  #3  
Old 07-20-2011, 12:56 PM
cmanns cmanns is offline
Senior Member
 
Join Date: Jun 2010
Posts: 100
Quote:
Originally Posted by webizen View Post
put cache rules in front of other rewrite rules (for friendly url's).



Will get back to you regarding cache with cookies in a bit.
thanks.

Majorly curious where it should be set, Yes made vhosts I didnt even put .htaccess cache stuff in, on cache.

Anyawys so magento apparently has a 500 dollar paid mod, screw that. I'm trying to figure out how to get it to say no cache header but besides that lets cache only the basics

Code:
/customer/account/login/
/checkout/cart/
/customer/account/login/
/wishlist/
/checkout/
#Search Queries
/catalogsearch/advanced/
/catalogsearch/result/?q=belt
/catalogsearch/result/index/?p=5&q=belt
#End
/fashion-jewelry/necklaces.html
^The sites all .html friendly urls.
__________________
-William C.Manns Owner of XenServ Co
Need LiteSpeed Hosting, Server Tuning, or Other Help I'm your guy

http://xenserv.com http://evilpuma.com
Reply With Quote
  #4  
Old 07-20-2011, 04:59 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,337
here is the rule to set no cache header

Quote:
Rewriterule ^non-cacheable-url$ - [E=Cache-control:no-cache]
Reply With Quote
  #5  
Old 07-30-2011, 06:02 AM
cmanns cmanns is offline
Senior Member
 
Join Date: Jun 2010
Posts: 100
Quote:
Originally Posted by webizen View Post
here is the rule to set no cache header
thanks.

So I'm curious is LS Cache a final product? Seems to need quite some buffing.

I enable cache, enable it for one cpanel vhost in .htaccess WHAM every php site's caching nearly everything and client's visitors are showing logged in as eachother

Also is there any official WordPress/IPB/etc cache settings yet?
__________________
-William C.Manns Owner of XenServ Co
Need LiteSpeed Hosting, Server Tuning, or Other Help I'm your guy

http://xenserv.com http://evilpuma.com
Reply With Quote
  #6  
Old 08-01-2011, 11:42 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,337
Here is the guide for IPB:

http://www.litespeedtech.com/support...:cache:ipboard
Reply With Quote
  #7  
Old 08-01-2011, 02:50 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,337
A general guide to LSWS cache is at http://www.litespeedtech.com/support...itespeed:cache

Quote:
Originally Posted by cmanns View Post
thanks.

So I'm curious is LS Cache a final product? Seems to need quite some buffing.

I enable cache, enable it for one cpanel vhost in .htaccess WHAM every php site's caching nearly everything and client's visitors are showing logged in as eachother

Also is there any official WordPress/IPB/etc cache settings yet?
Reply With Quote
  #8  
Old 08-23-2011, 04:20 PM
skippybosco skippybosco is offline
New Member
 
Join Date: Jan 2011
Posts: 8
@webizen: Any chance of getting a general guide for Wordpress setup using LiteSpeed Cache. Specifically in dealing with wp-admin and logged in user requests.
Reply With Quote
  #9  
Old 08-23-2011, 05:15 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,337
Will let you know once the wiki for WP is available.
Reply With Quote
  #10  
Old 08-23-2011, 05:19 PM
skippybosco skippybosco is offline
New Member
 
Join Date: Jan 2011
Posts: 8
Thanks. Can you provide any specific guidance on how the exclude works?

For example, is this what I would need to exclude all wpadmin requests from being cached?

Code:

# excluding certain URLs
  RewriteCond %{REQUEST_URI} !/(wpadmin) \.php$

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 11:31 PM.



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