This topic has 17 replies, 5 voices, and was last updated 9 years by Reflect Growth.
-
Author
-
April 14, 2015 at 06:21 #54350ianllParticipant
I’m having the issue where every time something is added to the activity stream it is posted multiple times. Updates are posted at least 2 times and in some cases until the page times out. please advise.
shpdev.wpengine.com
April 15, 2015 at 11:55 #54546LauraModeratorHello, this may be related to a cache plugin with object cache, please check out if you have a cache plugin, try turning on and off some options and testing if it resolves it
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
April 15, 2015 at 19:45 #54660ianllParticipantHosting at wpengine.com. I have the activity stream pages on the site disallowed from their cache and this test environment has their object cache disabled. Any other ideas?
April 15, 2015 at 22:10 #54704LauraModeratorHello, have you tried disabling some plugins and testing again? If that doesnt work it may be a custom code in functions.php if not, it has to be cache, i had this problem and solved it with that 🙂
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
April 16, 2015 at 00:50 #54734ianllParticipantAll non bundled plugins have been disabled and and the problem persists. The only code in my functions file is the code required for wpengine.com:
/** below added from support thread found at https://archived.seventhqueen.com/forums/topic/attachment-and-post-buttons-for-whats-new-posts-on-groups-were-hidden#post-32642 */add_action( ‘wp_enqueue_scripts’, ‘load_buddypress_js’ );
function load_buddypress_js () {
if (bp_is_group() || is_page( ‘activity’ )) {
wp_enqueue_script(‘buddypress_query’,plugins_url() . ‘/buddypress/bp-core/js/jquery-query.min.js’,array(“jquery”));
wp_enqueue_script(‘buddypress_members’,plugins_url() . ‘/buddypress/bp-core/js/widget-members.min.js’,array(“jquery”));
wp_enqueue_script(‘buddypress_cookie’,plugins_url() . ‘/buddypress/bp-core/js/jquery-cookie.min.js’,array(“jquery”));
wp_enqueue_script(‘buddypress_scroll’,plugins_url() . ‘/buddypress/bp-core/deprecated/js/jquery-scroll-to.min.js’,array(“jquery”));
wp_enqueue_script(‘buddypress_js’,get_template_directory_uri() . ‘/buddypress/js/buddypress.min.js’,array(“jquery”));
}
}shpdev.wpengine.com
Any chance you could take a look?
April 16, 2015 at 12:55 #54765LauraModeratorHello, yes please post your credentials so we can check it out 🙂
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
April 18, 2015 at 05:27 #55027ianllParticipantI have just verified the /activity/ url fragment is not removed from the Wpengine cache on my setup. I also just verified when I change the theme to 2015 this is not an issue…
April 23, 2015 at 01:32 #55751ianllParticipantWell my dev instance is no longer. I am sure it is the theme now as when I change to the 2015 theme keeping all plugins intact the issue continues and I worked with WPEngine for quite some time to ensure the activity stream is not cached and there is nothing else that they could do to help. Are other experiencing this? Have you seen this before or fixed it before??
April 23, 2015 at 02:06 #55756sharmstrModeratorCan you clarify “I am sure it is the theme now “? Did you mean ISN’T?
Here’s what I can tell you. Last year someone was having an issue with the activity stream in the groups and main activity context. (You’ve seen the topic) I was able to figure out that a number of files were not loading. I wrote the function to add the missing files. Over the next several months more and more people reported the same issue with wpengine sites and my function solved it. About 6? weeks ago one person actually got wpengine support involved. I was helping her as well. When I checked her site in the morning, only one set of those files were being loaded. Those were being loaded with my function. But, the fix wasnt working on her site. I thought it was a CDN issue. Later that afternoon I looked again and 2 sets of those files were being loaded. The result was that posting was working at that point BUT there were duplicate post. So, it made sense to remove my function since it appeared wpengine finally sorted out their issues and were now serving the files without any custom code. WRONG. Removing my function broke the activity posting again.
Thats what I know.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
July 28, 2015 at 16:16 #70412ianllParticipantThis was resolved by the support team at WPEngine.com making a change the the heartbeat functionality, this is ultimately what caused the multiple posts, not a cache issue…
July 28, 2015 at 16:55 #70415sharmstrModeratorCool.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
October 13, 2015 at 09:08 #81996Reflect GrowthParticipant@sharmstr – Just about to start debugging this issue on our site (having just re-introduced caching & cdn via wp-super-cache and minify / combine via wp-minify-fix). Would you be able to share the name & location of the files that you found were being loaded twice? So I know what to keep an eye out for.
@ianll – Any other details on the heartbeat issue you can share would be amazing! Will be looking into this also in case this is the cause of our issue.Apologies for resurrecting an older thread (as opposed to creating a new one), thought it may be best to keep all the associated knowledge for this issue on one thread 🙂
Cheers, Matt
October 14, 2015 at 09:27 #82197Reflect GrowthParticipantI’ve done some further debugging today. The issue, in my instance, is related to the minify / combine of javascript files provided (powered by wp-minify-fix). With this disabled I do not see duplicate status updates.
That suggests to me that I perhaps need to exclude certain scripts from the minify / combine process? So far the following scripts are excluded:
- wsi-public.js (WordPress Social Invites)
- app.min.js (From the Kleo theme) – As I’d observed many broken features on the site with this included
- init.js (From the Kleo theme) – As recommended on another support thread
- modernizr.custom.46504.js (From the Kleo theme) – As recommended on another support thread
- jquery.carouFredSel-6.2.0-packed.js (From the Kleo theme) – Related to a separate support query
@sharmstr / @ianll – Could you guys suggest any other JS files that may be coming into play here?October 14, 2015 at 11:33 #82209Reflect GrowthParticipantNote: I have another support thread on the go for what I thought was a separate issue over at: https://archived.seventhqueen.com/forums/topic/wp-minify-affecting-functionality-of-tabs-with-carousel-inside#post-82208
However, I believe all the issues I’m seeings are in relation to combining JS files (as I do not see issues when not combined, minification doesn’t affect the issues at all).
I’ll continue to update my original thread, but if @sharmstr or @ianll have any input it would be most welcomed 🙂
Cheers, Matt
October 14, 2015 at 12:39 #82213AndreiModeratorPlease consider using the “Better WordPress Minify” plugin, which was tested by us and didn’t created any issue. Also it comes with a ton of great features to manage the way your resources are loaded and minified.
Cheers
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionOctober 14, 2015 at 21:51 #82304ianllParticipant@reflectgrowth are you hosting at WPEngine? If so you should have them remove some urls for these areas of your site that they are caching. aside from that and the heartbeat api issue the only other things I did was to remove plugins that were doing caching and minifying and my issues were solved.
October 15, 2015 at 08:21 #82346Reflect GrowthParticipant -
AuthorPosts
The forum ‘Plugins questions’ is closed to new topics and replies.