|
|

07-20-2011, 11:11 AM
|
|
Senior Member
|
|
Join Date: Jun 2010
Posts: 100
|
|
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? 
|

07-20-2011, 11:56 AM
|
|
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.
|

07-20-2011, 12:56 PM
|
|
Senior Member
|
|
Join Date: Jun 2010
Posts: 100
|
|
Quote:
Originally Posted by webizen
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.
|

07-20-2011, 04:59 PM
|
|
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]
|
|

07-30-2011, 06:02 AM
|
|
Senior Member
|
|
Join Date: Jun 2010
Posts: 100
|
|
Quote:
Originally Posted by webizen
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?
|

08-01-2011, 11:42 AM
|
|
LiteSpeed Staff
|
|
Join Date: Oct 2010
Posts: 2,337
|
|
|
|

08-01-2011, 02:50 PM
|
|
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
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?
|
|

08-23-2011, 04:20 PM
|
|
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.
|

08-23-2011, 05:15 PM
|
|
LiteSpeed Staff
|
|
Join Date: Oct 2010
Posts: 2,337
|
|
|
Will let you know once the wiki for WP is available.
|

08-23-2011, 05:19 PM
|
|
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$
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 11:31 PM.
|
|