Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working! #1

Open
wants to merge 29 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
6055fbb
Module structure corrected.
alpharder Apr 6, 2016
8b6e8ee
Update addon.xml
alpharder May 4, 2016
07697f4
Update addon.xml
alpharder May 4, 2016
13fe582
Update addon.xml
alpharder May 4, 2016
cdde09f
Marketplace upgrade connector implemented.
alpharder May 5, 2016
831465b
Added a bit commentaries.
alpharder May 5, 2016
f264f64
Upgrade connector was incorrect. Fixed.
alpharder May 5, 2016
705cd9d
Upgrade connector was incorrect. Fixed.
alpharder May 6, 2016
42aa30b
Whitespaces were added.
alpharder May 6, 2016
c691098
Version increased
alpharder May 6, 2016
bc5562e
An addon identifier was incorrect. Fixed.
alpharder May 6, 2016
2c37179
Addon version increased
alpharder May 6, 2016
d8fe667
Addon version increased
alpharder May 6, 2016
f61d837
Added htaccess_lscache, rewrite rules to be added to .htaccess for co…
gwanglst Aug 1, 2016
b71c293
Added support for lscache using X-LiteSpeed-Tag and X-LiteSpeed-Purge…
gwanglst Aug 1, 2016
6a74362
Updated README
Woet Jan 6, 2020
d2f49f2
Updated .gitignore
Woet Jan 6, 2020
06072d7
Updated .htaccess
Woet Jan 6, 2020
0a1caeb
Moved addon files into /cscart
Woet Jan 6, 2020
48ce24f
Removed max version in addon.xml
Woet Jan 6, 2020
17d1259
Updated README
Woet Jan 6, 2020
0b2afec
Added comment to htaccess
Woet Jan 6, 2020
7e9a5e6
Updated addon.xml versions and fields
Woet Jan 6, 2020
6559364
Added CSRF support through ESI
Woet Jan 6, 2020
2ddecd3
Always enable cachelookup
Woet Jan 6, 2020
79a570c
Cache CSRF tokens for 1 hour
Woet Jan 6, 2020
0d68fb5
Add esi:remove and only send headers if possible
Woet Jan 6, 2020
0161855
Merge pull request #1 from Woet/dev
litespeedtech Jan 6, 2020
1bdbc17
Fixed command in README
Woet Nov 6, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 1 addition & 10 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1 @@
*.bak
*.DS_Store*
*.sublime*
*.sw*
*~
.buildpath
.idea
.project
nbproject
Thumbs.db
.vscode/
77 changes: 77 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
# LiteSpeed caching addon for CS-Cart (BETA)

## Important notes

* This addon is still in beta and under active development.

* This addon has been tested with CSCart 4.11.2. It should work on both older and newer versions, but you may run into some issues.

* This addon requires the use of ESI. OpenLiteSpeed does not support ESI at this time.

## Installation

### Configuring LiteSpeed Web Server

* Please make sure that you have a "Storage Path" configured at either a server or virtual host level.

* All other settings should either be "Not Set" or configured appropriately.

* Note that virtual hosts settings override any server settings.

*For more information, please refer to the "LSWS Cache configuration" screenshot at the bottom.*

### Installing the addon

1. Clone the Github repo

```
git clone https://github.com/litespeedtech/full-page-cache-addon
```

2. Move the contents of `cscart/*` to your CSCart installation
```
rsync -a full-page-cache-addon/cscart/ /your/cscart/installation/
```

3. Append the contents of `htaccess_lscache` to your `.htaccess`
```
cat full-page-cache-addon/htaccess_lscache >> /your/cscart/installation/.htaccess
```

### Configuring CSCart

1. Navigate to `Add-ons -> Manage add-ons` at the right top of the CSCart admin panel.

2. Scroll down to the `Full-page cache` add-on and click `Install`.

3. Scroll down to the `Full-page cache` add-on again, click `Disabled` and change it to `Active`.

*For more information, please refer to the "CSCart Manage Add-ons" screenshot at the bottom.*

### Testing

After following the steps above, check the response headers of your requests to CSCart. You should see this in the initial request:

`X-LiteSpeed-Cache: miss`

And after you refresh, it should change to a hit:

`X-LiteSpeed-Cache: hit`

## Support

If you find any issues, bugs, or possible improvements - please open an issue on Github. Be sure to mention the relevant stack and versions that you're using.

## Screenshots

### LSWS Cache configuration

![LSWS Cache configuration](https://s.woet.me/GuqWQZhHx7.png)

### CSCart Manage Add-ons

![CSCart Manage Add-ons](https://s.woet.me/OZCWQq8kf7.png)

![CSCart Install Add-on](https://s.woet.me/KwgyYktCfQ.png)

![CSCart Activate Add-on](https://s.woet.me/Yn7QgiDMo3.png)
Loading