Fix wrong id being assigned to article when storing cacheTags
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.
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
Thanks, but it didn't work for me.
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.
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.
Well, I guess it's time to move away from litespeed, it just dose not work well with J5