1

I already disabled the scheduled publish in sitecore using a patch file. the config is now:

<agent type="Sitecore.Tasks.PublishAgent" method="Run" interval="00:00:00" patch:source="PublishAgentInterval.config">
<param desc="source database">master</param>
<param desc="target database">web</param>
<param desc="mode (full or smart or incremental)" patch:source="PublishAgentInterval.config">smart</param>
<param desc="languages">en, da</param>
</agent>

However, when i save an item, it still publishes the item. any ideas why this is occuring? this is in production environment but in staging it doesn't happen. both have the same patch file with this value:

<?xml version="1.0"?>
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/" xmlns:set="http://www.sitecore.net/xmlconfig/set/" xmlns:env="http://www.sitecore.net/xmlconfig/env/">
    <sitecore>
        <scheduling>
            <agent type="Sitecore.Tasks.PublishAgent" method="Run" interval="00:00:00">
                <patch:attribute name="interval" value="00:00:00"/>
                
                <param desc="mode (full or smart or incremental)">smart</param>
            </agent>
        </scheduling>
    </sitecore>
</configuration>

This is the config for item:saved event:

<event name="item:saved" patch:source="XSitecore.Audit.Config">
<handler type="Sitecore.Links.ItemEventHandler, Sitecore.Kernel" method="OnItemSaved"/>
<handler type="Sitecore.Globalization.ItemEventHandler, Sitecore.Kernel" method="OnItemSaved"/>
<handler type="Sitecore.Rules.ItemEventHandler, Sitecore.Kernel" method="OnItemSaved"/>
<handler type="Sitecore.Caching.Placeholders.PlaceholderCacheEventHandler, Sitecore.Kernel" method="UpdateCaches" resolve="true"/>
<handler type="Sitecore.Marketing.xMgmt.Definitions.ItemEventHandler, Sitecore.Marketing.xMgmt" method="OnItemSaved" patch:source="Sitecore.Marketing.config"/>
<handler type="Sitecore.Analytics.Data.ItemEventHandler, Sitecore.Analytics" method="OnItemSaved" patch:source="Sitecore.Analytics.Tracking.config"/>
<handler type="Sitecore.ContentTesting.Events.GenerateScreenshot, Sitecore.ContentTesting" method="OnItemSaved" patch:source="Sitecore.ContentTesting.PreemptiveScreenshot.config">
<excludeFields hint="list:ExcludeFieldFromComparison">
<created>__created</created>
<createdby>__created by</createdby>
<updated>__updated</updated>
<updatedby>__updated by</updatedby>
<revision>__revision</revision>
<sortorder>__sortorder</sortorder>
<validfrom>__valid from</validfrom>
<workflow>__workflow</workflow>
<workflowstate>__workflow state</workflowstate>
<lock>__lock</lock>
<pageleveltestsetdefinition>__Page Level Test Set Definition</pageleveltestsetdefinition>
</excludeFields>
</handler>
<handler type="Sitecore.ExperienceAnalytics.Client.Deployment.Events.SegmentDeployedEventHandler, Sitecore.ExperienceAnalytics.Client" method="OnItemSaved" patch:source="Sitecore.ExperienceAnalytics.Client.config">
<param type="Sitecore.ExperienceAnalytics.Client.Deployment.DeploySegmentDefinitionProcessor, Sitecore.ExperienceAnalytics.Client">
<param ref="experienceAnalytics/client/logger"/>
<param type="Sitecore.ExperienceAnalytics.Core.Repositories.ReferenceData.ReferenceDataSegmentStore, Sitecore.ExperienceAnalytics.Core"/>
</param>
</handler>
<handler type="XSitecore.Wcms.CwpBase.XSitecore.Wcms.Audit.ItemAudit.ItemOperations,XSitecore.Wcms" method="OnItemSaved" patch:source="XSitecore.Audit.Config"/>
</event>
22
  • Probably a workflow
    – Mark Cassidy
    Commented Dec 13, 2021 at 8:58
  • Maybe a workflow or any save event? Commented Dec 13, 2021 at 9:07
  • @MarkCassidy i also tested an item without a workflow and after i saved it, it still gets published. any config that might be the cause?
    – Christian
    Commented Dec 13, 2021 at 9:07
  • @GauravAgarwal tested an item without a workflow and it still gets published after i save the item. this one only happens in production which is strange
    – Christian
    Commented Dec 13, 2021 at 9:10
  • I know asking this is silly but can you please confirm you are saving thing in master DB not in Web? If master then check showconfig and search is there any save event that is causing this. Commented Dec 13, 2021 at 9:11

1 Answer 1

0

Clearing the EventQueue and PublishQueue tables seems to have fixed it. I tested items and it doesn't go to Web DB anymore. This is the link on how to clear the tables: https://doc.sitecore.com/xp/en/developers/90/platform-administration-and-architecture/clean-up-the-eventqueue-and-publishqueue-tables.html

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.