?
avatar PhilETaylor
PhilETaylor
3 May 2017

Steps to reproduce the issue

Enable caching in Joomla 4.0
Progressive and Platform specific on
Cache handler = file
reload a content item on the frontpage

Expected result

Hit counter increments, while still allowing the page to be cached.

Actual result

Hit counter doesn't increment on the page - BUT IT DOES increment in the database meaning once the cache is cleared, or expires the page updates

avatar PhilETaylor PhilETaylor - open - 3 May 2017
avatar joomla-cms-bot joomla-cms-bot - change - 3 May 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 3 May 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 3 May 2017
Category com_cache
avatar mbabker
mbabker - comment - 3 May 2017

If the counters are incrementing in the database then what's the issue? Aside from showing an outdated number based on when the cache snapshot was created.

If the counter had to update correctly on each load, that would basically invalidate caching. Only possible ways around that are partial caching or using a plugin event to put in the right number, still requiring an extra database query.

avatar mbabker
mbabker - comment - 3 May 2017

Also, how many of these issues you've reported are unique to 4.0? Because surely this doesn't seem like something that's different from current 3.7 behaviors.

avatar PhilETaylor
PhilETaylor - comment - 3 May 2017

Also, how many of these issues you've reported are unique to 4.0?

Im only testing 4.0

It would be interesting to see what performance gain is being got by showing outdated information but still doing a sql update...

If this is the way its meant to be then I guess thats ok..

avatar PhilETaylor PhilETaylor - change - 3 May 2017
Status New Closed
Closed_Date 0000-00-00 00:00:00 2017-05-03 14:08:23
Closed_By PhilETaylor
avatar PhilETaylor PhilETaylor - close - 3 May 2017
avatar mbabker
mbabker - comment - 3 May 2017

It would be interesting to see what performance gain is being got by showing outdated information but still doing a sql update...

Well, for this part at least the component view isn't being triggered, a cache file is being read. So the view isn't having to load the model, issue the database query(ies), trigger plugin events, or render the layout. So, seems like a fair trade off to me.

avatar PhilETaylor PhilETaylor - comment - 3 May 2017
avatar mbabker mbabker - edited - 3 May 2017
avatar mbabker mbabker - edited - 3 May 2017

Add a Comment

Login with GitHub to post a comment