litespeedtech / litespeedtech/lscache-drupal

Module doesn't work?

Open
#41 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
15
Forks
19
PR merge metrics
No merged PRs in 30d

Description

We're on a Hosting.com site and running Drupal 10.3 on PHP 8.3. I've tried to get this module working but it doesn't seem be doing anything that I can see.

  • I've enabled the module and configured the basic settings
Image
  • I've ensured the proper code is at the start of .htaccess
<IfModule LiteSpeed>
    CacheLookup on
    php_value output_buffering Off
</IfModule>

However, if I enable cache manually in .htaccess the caching works fine, so it seems like it's not a server issue. Here's what I have so far that is mostly working, but I'd like to have the better control that the module gives us.

<IfModule LiteSpeed>
    CacheLookup on
    php_value output_buffering Off

    RewriteEngine On
    RewriteCond %{REQUEST_METHOD} ^GET|HEAD$
    RewriteCond %{HTTP_HOST} ^prod.campkern.org|www.campkern.org|www.daytonymca.org [NC]
    RewriteCond %{REQUEST_URI} !login|admin|register|post|cron|layout|edit|delete|revisions
    RewriteCond %{QUERY_STRING} !nocache
    RewriteRule .* - [E=Cache-Control:max-age=300]
</IfModule>

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue on the Hosting.com site with Drupal 10.3 and PHP 8.3, starting with the module settings and the .htaccess LiteSpeed block shown here. Compare the module-managed behavior with the manually working rules, then inspect response headers and https://check.lscache.io/. Done means identifying why the module does not enable caching and documenting a verified fix or required configuration.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.