Coder Social home page Coder Social logo

Comments (21)

uglyeoin avatar uglyeoin commented on June 16, 2024 1

Do you use Admin Tools? When I use LiteSpeed Cache, JCH Optimise and AdminTools I have to add this rule to the Admin Tools .htaccess maker https://gist.github.com/uglyeoin/04f9d8a7628fff772b49a88d4482d6eb hope that helps.

from lscache-joomla.

jimhill10 avatar jimhill10 commented on June 16, 2024 1

I am convinced that after following the input from @uglyeoin the issue, at least on my sites, is resolved. I have been running JCH Optimize cs/js combination features in the lowest mode and all has been working for a week with no 404 errors in the console trying to locate missing cached files.

from lscache-joomla.

WuhuaChen avatar WuhuaChen commented on June 16, 2024

@omikron I already submit an update to hook the JCH cache clean event on 6/17 , you can download the latest code from github, and run /package/buildPackage.sh to build the latest package then install it in Joomla. I didn't find a way to hook Joomla $cache->clean('page') API , you can try this update first and give me feedback, I'll follow up this issue until it is solved.

from lscache-joomla.

eggzamummy avatar eggzamummy commented on June 16, 2024

Thanks! I updated the component/plugin this morning and will monitor and report.

from lscache-joomla.

eggzamummy avatar eggzamummy commented on June 16, 2024

It looks like my login forms when used as a module now show "All Litespeed cache purged" instead of the login form. I tried rendering as ESI but didn't help...

from lscache-joomla.

WuhuaChen avatar WuhuaChen commented on June 16, 2024

Sorry, It's a bug in last code release, I just submit a bug fix . you can download the latest code from github, and run /package/buildPackage.sh to build the latest package then install it in Joomla to fix it. thanks.

from lscache-joomla.

eggzamummy avatar eggzamummy commented on June 16, 2024

It appears that we are still seeing some issues with the cache expiring in the JCH Optimize plugin and the litespeed cache not refreshing. It seems that when the JCH Optimize plugin dumps its cache and regenerates the new css and js files that the litespeed cache is trying to still serve the old files resulting in 404s. Also, it seems that now the utility URL to purge the cache is no longer working. Is there a bit of code that I can add to the JCH Optimize plugin's cache purge routine?

from lscache-joomla.

jimhill10 avatar jimhill10 commented on June 16, 2024

I am having the same issue. As a work around I had to implement the CSS / JS combine function that was built into my template and no do it in JCH Optimize until I can sort this issue out. I was seeing 404 errors in Akeeba Admin Tools.

from lscache-joomla.

WuhuaChen avatar WuhuaChen commented on June 16, 2024

I just released an update, added an event "onLSCacheExpired", you can call it like:
$dispatcher = JEventDispatcher::getInstance();
$dispatcher->trigger("onLSCacheExpired");
You can add it to JCH Optimize plugin's cache purge routine after upgraded to latest LSCache plugin code.

from lscache-joomla.

eggzamummy avatar eggzamummy commented on June 16, 2024

The JCH Optimize Team included the code above in their latest release. It seems to be working better but still seeing timing issues. Right now I have the cache TTL set to 10,000 minutes (1 week) and it seems to still be happening once a week. What is a good setting for the TTL?

It also looks as though the Web interface to purge all LiteSpeed Cache is no longer working - just gives a white screen...

from lscache-joomla.

eggzamummy avatar eggzamummy commented on June 16, 2024

Also, when calling the event "onLSCacheExpired" does this reset the cache timer for the site? I'm trying to sync up the timing on the JCH Optimize setting the JCH plugin to 1440 TTL and LSCache to 1445 so that they will both reset at approximately the same time so they do not conflict.

from lscache-joomla.

WuhuaChen avatar WuhuaChen commented on June 16, 2024

about cache TTL, if your cache TTL was set to 500 minutes, but your web page was visited every 1000 minutes, then the page cache will be expired for next visitor. if change cache TTL to 1200, this page cache will never be expired as long as it was visited every 1000 minutes. So normally set cache TTL greater than average interval of page visit will be better. Of course some web page was visit frequently but others was rarely visited, If no side effect found you can set a longer TTL to improve visitor experience.

The Web interface, I found a minor bug, the link I put in GUI have a word "cleancache=xxxx" should be "cleanCache=xxxx" , I will fix it later.

when calling the event "onLSCacheExpired" , it doesn't reset the cache timer for the site . the cache timer as reset at the first time of page visit after "onLSCacheExpired" event.

from lscache-joomla.

eggzamummy avatar eggzamummy commented on June 16, 2024

Shouldn't cache TTL be driven by the potential change to content on the site rather than based on how frequently it is visited? If you make updates to the site and your site is visited at a high rate, then those changes would never show without manually purging the cache.
Conversely, if the TTL functions as a timer based on last purge, then the site administrator would control the expiration rather than the frequency of the visitors....

from lscache-joomla.

eggzamummy avatar eggzamummy commented on June 16, 2024

It appears that we are still having some issues with the integration between JCH Optimize and the LSCache. It seems some pages that are not being visited frequently are potentially the issue. It appears that when these pages are visited, the LSCache is serving old HTML where the JCH Optimize has already generated a new hash for their consolidated JS and CSS files so the cached HTML is pointing to an old (non existent) JS and CSS file. The only way to resolve is to manually purge the LSCache.

from lscache-joomla.

WuhuaChen avatar WuhuaChen commented on June 16, 2024

Thanks for report. can you give me a test environment of your website with JCH configured as same as your product site. I need an back end admin panel account and a SFTP account which have read permission on joomla directory. you can send it to [email protected] and I will try my best to locate the problem and solve it.

from lscache-joomla.

uglyeoin avatar uglyeoin commented on June 16, 2024

@jimhill10 I feel good about myself :) Have a great weekend

from lscache-joomla.

uglyeoin avatar uglyeoin commented on June 16, 2024

Incidentally, the 404 is unrelated to which mode you have JCH on. It's either finding a file or not, I have all of mine on optimum with no issue.

from lscache-joomla.

omikron avatar omikron commented on June 16, 2024

Wordpress JCH+litespeed has the same issue... I wonder if it is related.

from lscache-joomla.

jimhill10 avatar jimhill10 commented on June 16, 2024

Thanks @uglyeoin

from lscache-joomla.

uglyeoin avatar uglyeoin commented on June 16, 2024

@omikron go to your website, right click, press inspect element (instructions for Google Chrome), click on console, refresh the page. If you see a red error message which says 403 forbidden you will know something is blocking the file. Or feel free to share your URL to see if we can spot the issue. Also let us know which security software you are using on WP.

from lscache-joomla.

uglyeoin avatar uglyeoin commented on June 16, 2024

Just FYI I found that the rule I created caused one site to get hacked so I have changed my Gist.

from lscache-joomla.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.