LiteSpeed Support Forums

LiteSpeed Support Forums (http://www.litespeedtech.com/support/forum/index.php)
-   LiteSpeed Cache (http://www.litespeedtech.com/support/forum/forumdisplay.php?f=30)
-   -   LSCache WordPress/IP.Board/Magento & General .htaccess q (http://www.litespeedtech.com/support/forum/showthread.php?t=5149)

cmanns 07-20-2011 11:11 AM

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? :D

webizen 07-20-2011 11:56 AM

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.

cmanns 07-20-2011 12:56 PM

Quote:

Originally Posted by webizen (Post 27932)
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.

webizen 07-20-2011 04:59 PM

here is the rule to set no cache header

Quote:

Rewriterule ^non-cacheable-url$ - [E=Cache-control:no-cache]

cmanns 07-30-2011 06:02 AM

Quote:

Originally Posted by webizen (Post 27951)
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 :eek:

Also is there any official WordPress/IPB/etc cache settings yet?

webizen 08-01-2011 11:42 AM

Here is the guide for IPB:

http://www.litespeedtech.com/support...:cache:ipboard

webizen 08-01-2011 02:50 PM

A general guide to LSWS cache is at http://www.litespeedtech.com/support...itespeed:cache

Quote:

Originally Posted by cmanns (Post 28735)
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 :eek:

Also is there any official WordPress/IPB/etc cache settings yet?


skippybosco 08-23-2011 04:20 PM

@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.

webizen 08-23-2011 05:15 PM

Will let you know once the wiki for WP is available.

skippybosco 08-23-2011 05:19 PM

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$




All times are GMT -7. The time now is 08:25 AM.