- Posts: 8
COMMUNITY FORUM
cache problem with 2.10.3
- Kostas Stathopoulos
- Topic Author
- Offline
- New Member
sometimes while it works properly it suddenly displays content from 3-4 days ago
random if hit refresh on browser button displays newest k2 articles but if after click on homepage link displays older content
Joomla 3.9.18 Gantry 4 php 7.3
module cache + page cache on
Please Log in or Create an account to join the conversation.
- JoomlaWorks
- Offline
- Admin
- Posts: 6225
It's most likely aggressive client-side caching configured.
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Petra Webstein
- Offline
- New Member
- Posts: 1
I am using Cache Cleaner of Regularlabs since a long time and this normally solves the problem.
So here is the link to where I am playing with K2 at the moment but would like to implement the Joomla articles soon.
family-historian.com/t/latest
Please Log in or Create an account to join the conversation.
- JoomlaWorks
- Offline
- Admin
- Posts: 6225
Overall disable any caching while the site is under development.
K2 doesn't have a bug related to caching, but eventually, you will have to grasp the concepts of caching on the web, what is client-side and what is server-side caching (and their difference) and so on.
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Bob Whitlock
- Offline
- New Member
- Posts: 4
Please Log in or Create an account to join the conversation.
- JoomlaWorks
- Offline
- Admin
- Posts: 6225
In other words, you'll have to explain to me how caching is configured on your site in detail to provide you with the right answer. From the settings in Global Configuration to the Page Cache plugin and/or other 3rd party caching plugins and of course the affected modules' cache settings.
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Bob Whitlock
- Offline
- New Member
- Posts: 4
Under global configuration, Cache Settings:
Cache Handler: "File"
Path to cache folder: blank
Cache Time: 1
Platform Specific Caching: No
System Cache is "OFF"
Page Cache plugin is disabled
I'm not aware of any other cache plugins
When I look at the "clear cache (site)" page, it shows one cache group, "gantry", with zero cache files.
Are there cache settings for K2? I'm not seeing anything.
Gantry 5 themes has:
production mode "no" (we've tried this set both ways and it doesn't seem to affect the problem)
asset timestamps: "Yes" - don't know if that is a factor
timestamp period: 0
Not sure if there's anything else I should be looking at? Thank you for taking time to respond. Hopefully this is just a setting that I've overlooked somewhere.
Please Log in or Create an account to join the conversation.
- JoomlaWorks
- Offline
- Admin
- Posts: 6225
Additionally, for the affected modules, what are their cache settings?
And actual live URL would also help...
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Bob Whitlock
- Offline
- New Member
- Posts: 4
My previous email lists this and all the other cache settings that I'm aware of. Regarding the website URL, are you wanting to look at the back end? I'd prefer not to post credentials on the forum.
Please Log in or Create an account to join the conversation.
- JoomlaWorks
- Offline
- Admin
- Posts: 6225
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Bob Whitlock
- Offline
- New Member
- Posts: 4
Please Log in or Create an account to join the conversation.
- JoomlaWorks
- Offline
- Admin
- Posts: 6225
But I understand there are obvious cases that this might cause issues, so it's best to make it optional.
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Jack Hughes
- Offline
- Junior Member
- Posts: 29
Fotis, I commented out the two lines of code you referenced in your reply. That worked.
Thanks
Please Log in or Create an account to join the conversation.
- JoomlaWorks
- Offline
- Admin
- Posts: 6225
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Josh Wilkinson
- Offline
- New Member
- Posts: 14
However, you said the following:
"Comment out these 2 lines github.com/getk2/k2/blob/master/components/com_k2/views/item/view.html.php#L465-L468 for now and I'll make sure this is optional in the next update of K2 via a switch in the K2 Settings."
Please Log in or Create an account to join the conversation.
- Josh Wilkinson
- Offline
- New Member
- Posts: 14
Thanks,
Josh
Please Log in or Create an account to join the conversation.