Recent content by AndreyPopov

  1. AndreyPopov

    LS Cache randomly breaks page encryption (UTF-8)

    stored on drive https://docs.openlitespeed.org/config/lscache/ storagePath $SERVER_ROOT/cachedata or storagePath $VH_ROOT/lscache P.S. you can set storagePath as you want :) even in memory (virtual RAM drive)
  2. 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...
  3. 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/
  4. 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
  5. 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/
  6. AndreyPopov

    Linux versions that support lsphp70

    https://openlitespeed.org/kb/step-by-step-install-ols/ https://openlitespeed.org/kb/build-custom-php-for-openlitespeed/
  7. 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...
  8. 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.
  9. AndreyPopov

    LSCache Mediawiki Plugin

    if disable ESI on LSWS - also work "as expected"
  10. 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...
  11. AndreyPopov

    LSCache Mediawiki Plugin

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

    LSCache Mediawiki Plugin

    you add $wgHooks to LocalSettings.php? Cache-Control: private, must-revalidate, max-age=0? and cookie ls_smartpush=01 ?
  13. 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.
  14. 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...
  15. 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.
Top