-
Notifications
You must be signed in to change notification settings - Fork 17
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
Speed of loaded page slower then normal .htaccess solution #2
Comments
very stange, reenabled the code you provide, now load time is 299ms? (pingdom speedtest - test server sweden) (jotcache cleared, litespeed cache clered, joomla cache cleared). |
What do you means: "reenabled the code you provide" ? Do you means to use joomla cache plugin? Cache TTL seems too short: RewriteRule .* - [E=Cache-Control:max-age=1] your rewrite rule only cache file for 1 second, you should change it to something longer, otherwise it may not be served from cache. RewriteRule .* - [E=Cache-Control:max-age=120] |
I changed the age to 360, same problem. |
Question, does anyone know which server directory the cache files are being stored? My staging server is on the same one as production and I am hoping the files are not being sent to the usual "lscache" which would mix with production. My staging server is now properly reporting a "hit" for Lscache. Took a few minutes are installation for this to show up, was showing "miss." I have some differences in my two sites. Production is using JCH Optimize and a CDN. My dev site with the new cache plugin (ordered last) is using neither. Ran some tests on webpagetest.org. Results were similar except that the first byte time increased by 2 seconds for the site with cache plugin. Per bytecheck.com the TTFB tests are: Loading time per GtMetrix / Pingdom: |
Yes. The first visit will be "miss", then you should see "hit" at the second visit. You should look for "X-LiteSpeed-Cache: hit" to ensure the cache is actually working before you run any test. |
Also don't mix the rewrite rules based cache enabling method with plugin-based cache enabling method. The cache files are stored as files on disk and cache root will be set at LSWS or apache conf. |
for performance issue originally reported, mainly due to some setup issue. there is a ticket logged in our support ticket system. We have obtained the login for the server on that ticket. We are helping to fix the configuration issue, afterward, we will show the test figure here for the real performance. We will also run some benchmark tests and show you the result. |
I have a testing site using the Litespeed plugin which in every other way replicates production which uses htaccess directives for Litespeed cache. Both sites use JCH Optimize with a CDN. I am having an issue with a long first byte time on the test site. It is a full 2 seconds longer than production. Other than that the page load time is similar. See this test: Here are some test results on the same page (Pingdom / Webpagetest / Gtmetrix in secondsTest Server: 3.7 / 6.2 / 6.0 Second, can you clarify what other cache/compression directives you are using? We have a variety of directives in our production site. I took them out of the test site in order to try to solve the long TTFB. Here are the ones in place on production:
Here is our htaccess file if you are interested. |
There is still no solution
I have copyed my production server, and given them full access, but I cannot report any progress. So I guess it's more difficult then a simple fix. When I know more, I or the firm will update |
I am trying to track down what is causing my long TTFB on my dev site while production is almost zero. I will spend some time on this to disable every plugin as well as use the Joomla debug to analyze queries and see what is taking so long. |
I have 1.0.1 running in production and I think that this is actually faster than the former htacess directive method. I am interested if others are seeing the same thing. I am using a few values to match a regex in the exclusions list, and a bunch of modules in ESI mode including all the Rsforms. So I am not seeing a repeat of what I saw on our dev site with this issue. |
Closing, after upgradring to 1.20 of plugin, and duing my speed testing it's no longer a problem. |
Loadtime "pingdom speedtest" 650-627ms vs 350-299ms
(even on multiable reload).
`
#
CacheEnable public
RewriteEngine On
RewriteCond %{REQUEST_METHOD} ^HEAD|GET$
RewriteCond %{HTTP_HOST} ^lungekursus.dk|a2.lungekursus.dk|www.lungekursus.dk [NC]
RewriteCond %{HTTP_COOKIE} !loginuser
RewriteCond %{ORG_REQ_URI} !^/index.php$
RewriteCond %{ORG_REQ_URI} !administrator
RewriteCond %{ORG_REQ_URI} (.php|.html|.htm|.feed|.pdf|.raw|/[^.]*)$ [NC]
RewriteCond %{QUERY_STRING} !nocache
RewriteCond %{REQUEST_URI} !^/[0-9]+..+.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/.well-known/acme-challenge/[0-9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !^/.well-known/pki-validation/[A-F0-9]{32}.txt(?:\ Comodo\ DCV)?$
RewriteRule .* - [E=Cache-Control:max-age=1]
#
##plugin Litespeed code
CacheLookup on
RewriteEngine On
RewriteRule .* - [E=esi_on:1]
`
The text was updated successfully, but these errors were encountered: