Comments (21)
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.
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.
@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.
Thanks! I updated the component/plugin this morning and will monitor and report.
from lscache-joomla.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
@jimhill10 I feel good about myself :) Have a great weekend
from lscache-joomla.
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.
Wordpress JCH+litespeed has the same issue... I wonder if it is related.
from lscache-joomla.
Thanks @uglyeoin
from lscache-joomla.
@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.
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)
- Use of undefined constant current HOT 3
- Litespeed cache strips inline JavaScript
- The cache component causes other component to crash in Joomla 4 HOT 2
- big problem Ls cache in joomla administration
- Notice: Trying to get property 'id' of non-object in lscache.php on line 209 HOT 2
- Joomla 4 version using old mod_lscache instead of mod_lscache_purge in administrator HOT 1
- Joomla 4 -- Message: Cannot access protected property Joomla\CMS\Menu\MenuItem::$params HOT 2
- missing update of Joomla 3 package (from latest update to the libery) HOT 2
- Why no update improvement Joomla as with Wordpress? HOT 2
- PHP 8 & Joomla 4.2.2 issue HOT 2
- Virtuemart files still ok ? HOT 2
- Exclude com tags not working
- Joomla! 4.2.8 + LScache "latest": problems with Virtuemart HOT 10
- I don't see headers X-LiteSpeed-Cache "hit" "miss" in console HOT 1
- Error with Akeeba backup when click on "FREEZE" HOT 2
- 10 sec to save a joomla article HOT 1
- Is there something we can do to help you progress this project? HOT 5
- php 8 support? HOT 2
- Joomla 5 Behaviour - Backward Compatibility
- Joomla 5 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lscache-joomla.