Search results

  1. 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
  2. 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/
  3. AndreyPopov

    Linux versions that support lsphp70

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

    LSCache Mediawiki Plugin

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

    LSCache Mediawiki Plugin

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

    LSCache Mediawiki Plugin

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

    LSCache Mediawiki Plugin

    @Balerion may be, you need to disable in header request Vary: Accept-Encoding for OLS?
  14. 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.
  15. 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...
  16. 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
  17. 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...
  18. AndreyPopov

    How to optimize performance in OLS Server Configuration tab?

    WP LSCache Object Cache is kind of database query caching
  19. AndreyPopov

    How to optimize performance in OLS Server Configuration tab?

    to store on Redis server (RAM) "Object Cache" - this is only one way to use redis :)
  20. AndreyPopov

    How to optimize performance in OLS Server Configuration tab?

    @eakteam I use Opencart CSM, you use WordPress CSM. but I think base methods are same. Opencart use session, cache, database driver that you change in config.php file and for frontend (system/config/catalog.php) and backend system/config/admin.php). // Cache define('CACHE_DRIVER', 'redis')...
Top