LSCWP .htaccess file

Discussion in 'Feedback/Feature Requests' started by Hedloff, Sep 29, 2016.

  1. Hedloff

    Hedloff Well-Known Member

    Hello,

    We currently have cachelookup public turned off as default in our lsws and I guess most of your customers has the same. Especially for those that does provide LSCWP.

    Is it possible for your plugin to check .htaccess file if there are any cachelookup public line from before and if not add it when your plugin is installed?

    That would really help and make it easier for our customers to install the plugin and use it.

    Today you add this code:

    Code:
    <IfModule LiteSpeed>
    RewriteEngine on
    ###LSCACHE START RESOURCE###
    RewriteRule wp-content/.*/(loader|fonts)\.php - [E=cache-control:max-age=3600]
    ###LSCACHE END RESOURCE###
    ###LSCACHE START FAVICON###
    RewriteRule favicon\.ico$ - [E=cache-control:max-age=86400]
    ###LSCACHE END FAVICON###
    </IfModule>
    
    How about adding:

    Code:
    <IfModule LiteSpeed>
    CacheLookup public on
    RewriteEngine on
    ###LSCACHE START RESOURCE###
    RewriteRule wp-content/.*/(loader|fonts)\.php - [E=cache-control:max-age=3600]
    ###LSCACHE END RESOURCE###
    ###LSCACHE START FAVICON###
    RewriteRule favicon\.ico$ - [E=cache-control:max-age=86400]
    ###LSCACHE END FAVICON###
    </IfModule>
    
    That would help alot :)
     
  2. KevinFwu

    KevinFwu Administrator Staff Member

    Hi Hedloff,

    It is already implemented for the next version :)

    Need to fix a couple more things (one of which will probably be your other post), then testing! Anticipate a release probably next week.
     
  3. Hedloff

    Hedloff Well-Known Member

    Great! It would help a lot to get that implementet in your plugin ;-)
     

Share This Page