Search results

  1. LiteCache

    What OLS server limit (10 vcpu)

    You could actually answer your own question. Just count the amount of plugins, then you have the answer. This is not an OLS problem, but a problem with Wordpress, or an unavoidable problem with any PHP framework. Reduce the number of plugins to a tolerable level. Then your performance problems...
  2. LiteCache

    503 when setting cookie via RewriteRule

    @Xoogu A cookie cannot be set by rewriteRule. A cookie is sent as header, so you must use the OLS way to set a custom header (cookie) Header add Set-Cookie "mycookiename=mycookievalue; path=/; secure;SameSite=None"
  3. LiteCache

    openlitespeed cache without plugin not work

    The session may exists, but if a page is cached you can't check if session exists. A cached page is just plain text and with plain text you can't run PHP, so your thinking is wrong. There are ways to check this anyway, but with OLS those options are severely limited and not safe. Also, don't...
  4. LiteCache

    openlitespeed cache without plugin not work

    Where do you use these rules? https://www.arabchat.mobi/? I still see CDN headers at https://www.arabchat.mobi/
  5. LiteCache

    openlitespeed cache without plugin not work

    You can only actually debug the problem if you have ruled out all conceivable sources of interference and that inevitably includes the CDN. Even if you have solved the login problem, there are still much bigger problems that are even more difficult to solve. So I just ask you one question...
  6. LiteCache

    openlitespeed cache without plugin not work

    You need private cache for logged-in users. This is important, otherwise you will get new issues. Not logged-in users will see cached content from logged-in users, you understand?
  7. LiteCache

    openlitespeed cache without plugin not work

    The code for the .htaccess is logically correct and meets all the necessary requirements. However, I don't know the PHP code of your site, so it may well be that you either have to change or add something. This primarily concerns that the cookies are set correctly.
  8. LiteCache

    openlitespeed cache without plugin not work

    That would be a conceivable reason! Can you temporarily disable the CDN?
  9. LiteCache

    openlitespeed cache without plugin not work

    No, this is not a rewrite rule and will not work with OLS. https://openlitespeed.org/kb/how-to-set-up-custom-headers/
  10. LiteCache

    openlitespeed cache without plugin not work

    <IfModule litespeed> CacheLookup on RewriteEngine On RewriteCond %{REQUEST_URI} ^/admin/ [NC] RewriteRule .* - [E=Cache-Control:no-cache] RewriteRule .* - [E=cache-control:max-age=120] RewriteCond %{HTTP_COOKIE} set_cookie_login_name [NC] RewriteRule .* - [E=cache-control::private,max-age=120]...
  11. LiteCache

    openlitespeed cache without plugin not work

    For dynamically generated documents: For OLS please set accordingly! <FilesMatch "(\.html|\.htm|\.php|\.HTML|\.HTM|\.PHP)$"> Header set cache-control: private, no-store, no-cache, must-revlidate </FilesMatch>
  12. LiteCache

    openlitespeed cache without plugin not work

    Please post cache-control (not x-litespeed-cache-control) settings. If you offer different languages you need a language cookie with different values depending on selected language. Then you can define a cache vary depending on cookie value.
  13. LiteCache

    openlitespeed cache without plugin not work

    Try this: <IfModule litespeed> CacheLookup on RewriteEngine On RewriteCond %{REQUEST_URI} ^/admin/ [NC] RewriteRule .* - [E=Cache-Control:no-cache] RewriteCond %{HTTP_COOKIE} set_cookie_login_name [NC] RewriteRule .* - [E=cache-control::private,max-age=120] RewriteRule .* -...
  14. LiteCache

    openlitespeed cache without plugin not work

    POST is set to no-cache by design, so there must be other reason that causes this issue. Do you use AJAX for login? Do you set any cookie for login?
  15. LiteCache

    openlitespeed cache without plugin not work

    Which request method do you use for login? POST or GET?
  16. LiteCache

    openlitespeed cache without plugin not work

    Therefore it is smarter not to use UCSS inline. It is even smarter to use UCSS as Critical CSS, because only CCSS actually improves the loading time. In addition, it consumes significantly less storage space and the storage size of the main document is only slightly larger.
  17. LiteCache

    openlitespeed cache without plugin not work

    @krrish Why do you use private cache with your page?
  18. LiteCache

    openlitespeed cache without plugin not work

    CSS, JS, images and so on are static sources and such sources are cached by the browser and cannot cached by OLS. The browser needs such sources to be cached, not the server.
  19. LiteCache

    openlitespeed cache without plugin not work

    This doesn't matter, because nobody asked for to cache only particular content. Especially since this question does not even arise with OLS. It's only about to make cache available without any plugin. Rewrite Engine is always enabled and there is no need to point this out specifically. Please...
Top