lscache-joomla icon indicating copy to clipboard operation
lscache-joomla copied to clipboard

Fix wrong id being assigned to article when storing cacheTags

Open AndySDH opened this issue 1 year ago • 5 comments

The current code is wrong because the id assigned to the cacheTags depends on the menu item.

This means that if an article belongs to a Category List menu item, for example, the id assigned in the cacheTags for each article is the id of the category instead of the id of the article.

This causes the article cache to not be purged when saving the article, because the assigned id is wrong.

This pull request fixes the issue.

AndySDH avatar Dec 09 '24 11:12 AndySDH

Oh thanks for this one ! Unfortunately, I've just test your fix, and when saving the article, the cache article is not update. But when I click joomla Clear cache button then it updates... Will do some other tests

M-Falken avatar Dec 20 '24 11:12 M-Falken

Thanks, but it didn't work for me.

ch2856 avatar Jan 22 '25 17:01 ch2856

Very strange. It works perfectly in all my test setups. I would have to troubleshoot why it's not working on your setups...

Oh thanks for this one ! Unfortunately, I've just test your fix, and when saving the article, the cache article is not update. But when I click joomla Clear cache button then it updates... Will do some other tests

If you're using two cache systems at the same time (Joomla Cache & Litespeed Cache), they may conflict with each other if one cache is cleared but the other is not. I don't recommend using two types of cache at the same time.

AndySDH avatar Jan 23 '25 09:01 AndySDH

Joomla cache is off for me. I did found something. I reinstall lscache_plugin which cleared all the cache. I edit an article and it did cleared the cache and display the changes, but when I try to edit it again (or other article) it didn't and i had to manually (Purge input URL) cleared the cache.

ch2856 avatar Jan 23 '25 11:01 ch2856

Well, I guess it's time to move away from litespeed, it just dose not work well with J5

ch2856 avatar Feb 05 '25 11:02 ch2856