Search results

  1. AndreyPopov

    LS Cache randomly breaks page encryption (UTF-8)

    LSCache stored cached page as HTML static files. you can find lscache folder and investigate stored HTML static files. may be some browser(device) that send request with non-UTF8 encoding (ANSI) and after this request lscache HTML static file saved. this saved non-UTF8 HTML static file provided...
  2. AndreyPopov

    How to Install LSCache Module?

    LSCache is native part of OLS/LSWS you only must activate it by directives in .htaccess https://docs.litespeedtech.com/lscache/noplugin/settings/
  3. AndreyPopov

    Some help with rewrite rules

    RewriteRule with L flag - means LAST rule after rule with L flag no any rules executed. if you want execute rules in groups then you must each group "separate" by <IfModule LiteSpeed> .... </IfModule> tags
  4. AndreyPopov

    Redis vs Memcache

    https://scalegrid.io/blog/redis-vs-memcached-2021-comparison/ https://www.baeldung.com/memcached-vs-redis https://aws.amazon.com/elasticache/redis-vs-memcached/
  5. AndreyPopov

    Linux versions that support lsphp70

    https://openlitespeed.org/kb/step-by-step-install-ols/ https://openlitespeed.org/kb/build-custom-php-for-openlitespeed/
  6. AndreyPopov

    LSCache Mediawiki Plugin

    try add GA script to this function $wgHooks['BeforePageDisplay'][] = 'onBeforePageDisplay'; function onBeforePageDisplay(OutputPage & $out, Skin & $skin) { $script = '<link href="https://fonts.googleapis.com/css?family=Uncial+Antiqua" rel="preload" as="style"> <link...
  7. AndreyPopov

    LSCache Mediawiki Plugin

    if I right understanding, Mediawiki $wgHooks['BeforePageDisplay'] each time redirect output even page in lscache. lscache send cached page but $wgHooks['BeforePageDisplay'] change header anyway. I think must by other way add GA script in header.
  8. AndreyPopov

    LSCache Mediawiki Plugin

    if disable ESI on LSWS - also work "as expected"
  9. AndreyPopov

    LSCache Mediawiki Plugin

    in my opinion problem in $wgHooks['BeforePageDisplay'] Hooks allow custom code to be executed when some defined event (such as saving a page or a user logging in) occurs. BeforePageDisplay Allows last minute changes to the output page, e.g. adding of CSS or JavaScript by extensions. I think...
  10. AndreyPopov

    LSCache Mediawiki Plugin

    not sure that function $wgHooks['BeforePageDisplay'][] = function( OutputPage &$out, Skin &$skin ) { $code = in LocalSettings.php is better than Gtag plugin.
  11. AndreyPopov

    LSCache Mediawiki Plugin

    you add $wgHooks to LocalSettings.php? Cache-Control: private, must-revalidate, max-age=0? and cookie ls_smartpush=01 ?
  12. AndreyPopov

    LSCache Mediawiki Plugin

    right for OLS what to do script and what cookies sets - no matter, if script always present in page code and saved by lscache in static html file.
  13. AndreyPopov

    LSCache Mediawiki Plugin

    in my opinion - Gtag is wrong way for OLS. LSCache save each page as static html page. Gtag on each request decide add or not <script async src="https://www.googletagmanager.com/gtag/js?id=UA-XXXXXXXX"></script> to output LSWS support ESI for header and footer and that's why Gtag can work on...
  14. AndreyPopov

    LSCache Mediawiki Plugin

    make clean install of OLS + Mediawiki without any third-party modules or plugins add LSCache plugin test. if work - only than add other plugins and modules. sometimes order of adding is matter.
  15. AndreyPopov

    LSCache Mediawiki Plugin

    @Balerion may be, you need to disable in header request Vary: Accept-Encoding for OLS?
  16. AndreyPopov

    LSCache Mediawiki Plugin

    check.lscache.io send only gzip encoding request and LSWS "on the fly" recompress br encoding stored page to gzip encoding and provide. page stored at lscache in br encoding. only LSWS can this.
  17. AndreyPopov

    LSCache Mediawiki Plugin

    this site on LiteSpeed server, not OLS (OpenLiteSpeed) LiteSpeed Web Server (LSWS) server support br encoding for stored lscache (gzip also supported). OLS support only gzip encoding for lscache. LSWS can provide stored in br encoding lscache for all encoding requests: br, gzip, deflate...
  18. AndreyPopov

    LSCache Mediawiki Plugin

    probably cookie Vary: Accept-Encoding, Cookie Vary: Accept-Encoding, Cookie,User-Agent check.lscache.io not accept external cookies that's why use lscache without cookie vary actual browser accept cookies and use lscache with cookie vary
  19. AndreyPopov

    LSCache Mediawiki Plugin

    ike I answer on Slack - on OLS lscache store always in /priv folder may be try in server configuration enableCache 0 expireInSeconds 3600 enablePrivateCache 0 privateExpireInSeconds 3600 make enableCache 1 expireInSeconds 864020 enablePrivateCache 1 privateExpireInSeconds 3600 also...
  20. AndreyPopov

    How to optimize performance in OLS Server Configuration tab?

    WP LSCache Object Cache is kind of database query caching
Top