Community Forums › Forums › Archived Forums › General Discussion › sidebar cache?
Tagged: cache sidebar refresh problem
- This topic has 6 replies, 3 voices, and was last updated 8 years, 8 months ago by coralseait.
-
AuthorPosts
-
August 30, 2015 at 1:08 pm #164069tobyhageMember
Hello,
I have several websites with custom genesis themes. And i have a caching/refresh issue on all of them.
The problem is that my visitors don't see the latest version of my WordPress website. One of the websites i'am speaking about is http://www.kndb.nl. When a new newsitem is published, the newsitem will be displayed in the sidebar on the right side.
Visitors are complaining that they don't see the latest published newsitems, sometimes it takes one or two days when they see the latest version. The same problem occurs when you visit the website on a tablet. You have to to (multiple) refresh to see the latest version.
It is remarkable when you click on the logo, that the elements on the left side of the page refreshes, but the sidebar not.
To display the newsitems on the sidebar i use the plugin: "Genesis Featured Widget Amplified". This is a pretty old plugin, but it still works. I have checked the code, and there is no caching used.
Hereby some extra info.
hosting: siteground
wordpress: 4.3
theme: custom genesis theme
dynamic cache: off
memcache: offHopefully somebody can help me with this issue, i have already spend a lot of time and have no clue. Furthermore i want to enable the dynamic-caching and memcache again, because i think the current problem has nothing to do with these settings.
Thanks in advance.....
http://www.kndb.nlAugust 30, 2015 at 8:54 pm #164087coralseaitMemberHello,
I believe that's a transient cache issue, you may need something in functions.php to specifically no-cache or cache flush those on post creation or edit.
We don't use siteground, but reading up it looks like they use varnish for the static / dynamic cache. Combined with the description of your problem it sounds like the caching aging is a day or so. You'll need to ask siteground if you can tune that at all and/or if they recommend a plugin that will flush the varnish cache on post / page creation or edit.
You can also enable the memcached cache and would need something to flush it as well.
Speak with siteground and find out how they can configure the varnish and/or memcache to flush on content changes!
August 31, 2015 at 11:25 am #164141tobyhageMemberHello,
Thank you for your answer. I have some additional questions / remarks
1) You are talking about a transient cache issue. Do you mean that the sidebar code is stored in a transient cache and is this handled by Genesis theme or WordPress core?
2) Dynamic cache is already off. The static cache is on, but static cache is only used to cache css, js and images.
3) Siteground has a own wordpress plugin sg-cachepress. This plugin has following options:* Dynamic Cache ON/OFF - enable or disable the SiteGround Dynamic caching system
* AutoFlush Cache ON/OFF - automatically flush the Dynamic cache when you edit your content
* Purge Cache - Manually purge all cached data from the dynamic cacheDynamic Cache is Off
AutoFlush Cache is On
MemCache is also Off (they have no option to flush this one, i will ask for this option)They have also a Dynamic Cache Status check. If i do this for the homepage, the result is false and that is correct.
So i think all caching is off (except for static cache), so if i understand correctly the sidebar should not be cached. Is this assumption right?
August 31, 2015 at 12:41 pm #164147Victor FontModeratorYou have to login into Siteground's cPanel to flush memcache. While you developing, turn off all caching through cPanel. Even the SG cachepress plugin allows you to turn dynamic caching on/off, static caching is still on. It can only be turned off through cPanel. Neither WordPress or Genesis does any kind of caching. It's always done through plugins, at the server level, or through a combination of both.
Regards,
Victor
https://victorfont.com/
Call us toll free: 844-VIC-FONT (842-3668)
Have you requested your free website audit yet?August 31, 2015 at 1:16 pm #164154tobyhageMemberVictor,
Thank you for your answer, but for me it doesn't give new information to solve my problem.
This website is not in a development stage, it is live and there is a problem with the refresh of the sidebar.
It is not possible with every website change to flush the cache in cpanel, this is not very handy.All caching is OFF, except for static caching, but static caching is not causing this problem.
August 31, 2015 at 1:37 pm #164157Victor FontModeratorIf you run your site through GtMetrix, you see there are many issues with your site, many within your control like expires headers and entity tags. They'll give you suggestions about how to fix the problems.
Regards,
Victor
https://victorfont.com/
Call us toll free: 844-VIC-FONT (842-3668)
Have you requested your free website audit yet?August 31, 2015 at 5:14 pm #164174coralseaitMemberHowdy Again,
Victor has given you a good start though. There's a couple things here, given your description of the problem, it is likely one of two things:
1) The varnish cache is still functioning in some way; hence your day expiry and it sounds like siteground do auto expire every 24 hours
or
2) You have cache descriptions on your assets of some sort which are causing browsers to local cache. That's what Victor means when he says expiry headers, eTags, etc - you may be setting info inadvertently that tells browsers not to request new assets. Victor is saying GTMetrix and other tools can help you dig into that.
Also it could be a combination of both.
-
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.