Search
Other Articles Anywhere questions
Forum

AA Pro for J4: Issue with Caching?

Gerd's Avatar Gerd
The saga continues...

I can rule out Siteground as the cause now. Reason is I created a server and did a complete install on DigitalOcean (which btw is really fast).

The issue remains and it behaves exactly as before.

IMO - that means the issue could be either caused by joomla (mod_content) or AA Pro or a combination.

Not sure what else I could try.
Peter van Westen's Avatar Peter van Westen ADMIN
Try reproducing this on a clean Joomla 4 installation with only Articles Anywhere installed.
Please post a rating at the Joomla! Extensions Directory
Gerd's Avatar Gerd
Hi Peter, ok - I did.

- Fresh site, brand new joomla install, standard cassiopeia template.
- Only installed AA Pro and Reglabs Cache Cleaner
- Created one custom module and a bunch of articles, categories and tags.

- I tried with conservative file-based filtering and the same issue: On 2nd time loading the page, the AA filtering pulls all articles from the category instead of a subset as when loading the first time.

Feel free to check below
Confidential information:
(hidden)
Peter van Westen's Avatar Peter van Westen ADMIN
Please try the latest development version from:
regularlabs.com/development-releases
Please post a rating at the Joomla! Extensions Directory
Gerd's Avatar Gerd
I didn't check all possible scenarios but it seems to have fixed this issue. Thanks!
Peter van Westen's Avatar Peter van Westen ADMIN
Just to explain, here some technical background which you can safely ignore and not read ?

In the content prepare stage, Articles Anywhere stores what the current article is, which it uses in later stages of the page rendering process.
This step was however getting skipped because of caching (the onContentPrepare never gets triggered).

So I added some code so it grabs the article id from the URL when possible in those cases.

The reason this caused an issue in your specific case, was that you are using the {articles} tag in a module (so outside the cached article) and using the "current" in the filters. The "current" thing needs to figure out the current article.
Please post a rating at the Joomla! Extensions Directory
Gerd's Avatar Gerd
Interesting - Thanks for the details: I had observed that the article-tag works inside an article but not in a module.

Just a general (Joomla) comment: I always find the whole Joomla caching options super-confusing often causing issues, even now under V4. The Joomla team needs a 'Peter' to fix that 😉

Also, I'm starting to really like DigitalOcean. I think I will move my stuff over to them. Running it on a droplet, with CyberPanel on top. And - yes - with LiteSpeed as a web server. WITHOUT any caching turned on, I've seen a performance increase of about 15-20%! Litespeed makes a huge difference. Hopefully it will be included as an officially supported web server by the Joomla team at one point in the future.
Peter van Westen's Avatar Peter van Westen ADMIN
You might find this interesting: www.joomlabeginner.com/blog/tutorials/81...able-cache-in-joomla
The Joomla team needs a 'Peter' to fix that
Not sure about that. But I do know that 'Peter' doesn't need that! ?

The fix will be included in the next release of Articles Anywhere.
Please post a rating at the Joomla! Extensions Directory
Gerd's Avatar Gerd
Hi Peter,

after letting this run for a couple of days, I think there might still be an issue. When looking at the Cache-page in Joomla, there is one line showing the number of files for regularlabs. In our case it shows more than 6800 files. Our site has around 700 pages with on average of 4 regularlabs AA content pieves of which maybe 30% got hit in the last 48 hours.

That should sum up to less than 900 in the cache, way less than what's showing.

Is the caching session specific, hence the number is so big?
Peter van Westen's Avatar Peter van Westen ADMIN
The cache files in the regularlabs folder are not pages that are coached. But stuff like database query results. So 1 page can create multiple cache files.
Please post a rating at the Joomla! Extensions Directory
Gerd's Avatar Gerd
Ok - Interesting. Here is a screenshot of the cache after loading 2 pages...
Seems high.
Peter van Westen's Avatar Peter van Westen ADMIN
You can switch of query caching in the Articles Anywhere system plugin settings.
Please post a rating at the Joomla! Extensions Directory
You can only post on the extension support forum if you have an active subscription and you log in

Buy a Pro subscription