LSCache WordPress/IP.Board/Magento & General .htaccess q

Discussion in 'LiteSpeed Cache' started by cmanns, Jul 20, 2011.

  1. cmanns

    cmanns New Member

    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
  2. webizen

    webizen New Member

    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.
  3. cmanns

    cmanns New Member

    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.
  4. webizen

    webizen New Member

    here is the rule to set no cache header

  5. cmanns

    cmanns New Member

    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?
  6. webizen

    webizen New Member

  7. webizen

    webizen New Member

    A general guide to LSWS cache is at http://www.litespeedtech.com/support/wiki/doku.php?id=litespeed_wiki:litespeed:cache

  8. skippybosco

    skippybosco New Member

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

    webizen New Member

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

    skippybosco New Member

    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$

  11. webizen

    webizen New Member

    you can enable private cache and put /wpadmin/ in 'do-not-cache URL' box.

    Sample configuration is as follows:

    Admin CP -> Configuration -> Server -> Cache

Share This Page