cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

About WCMS/ 'website' setting, we are trying to temporarily disable site

arthurjs2
Participant
0 Likes
793

Every time we put the Website 'Active' on 'False',

Within 30 minutes it is back on 'True' and the website can be reached!

Is there a way to permanently DISABLE the website untill we put it on active again??

Thank you!

Accepted Solutions (0)

Answers (1)

Answers (1)

arvind-kumar_avinash
Active Contributor
0 Likes

Most likely, your content catalog synchronization job is scheduled to run for every 30 minutes and it is causing this. The solution to this is to exclude this property from being synchronized. You can do it using hMC or an ImpEx script e.g.

 INSERT_UPDATE SyncAttributeDescriptorConfig;syncJob(code)[unique=true,path-delimiter=!];attributeDescriptor(enclosingType(code), qualifier)[unique=true];includedInSync;copyByValue
 ;sync-job-code;itemtype-code:attribute-qualifier-to-be-excluded;false;false

In your case, it should be:

 INSERT_UPDATE SyncAttributeDescriptorConfig;syncJob(code)[unique=true,path-delimiter=!];attributeDescriptor(enclosingType(code), qualifier)[unique=true];includedInSync;copyByValue
 ;sync-job-code;CMSSite:active;false;false
andyfletcher
Active Contributor
0 Likes

~~or.... just mark the site as inactive in the staged catalog and sync?~~

EDIT: not sure what I'm thinking, CMSSite isn't catalog version aware!

arthurjs2
Participant
0 Likes

Great idea! Just added this, now to check if it worked 🙂 Thank you in advance

 INSERT_UPDATE SyncAttributeDescriptorConfig; syncJob(code)[default = synjobName][unique = true][path-delimiter = !]; attributeDescriptor(enclosingType(code), qualifier)[unique = true]; includedInSync; copyByValue
 ; $syncJob ; CMSSite:active ; false ; false
arvind-kumar_avinash
Active Contributor
0 Likes

Good luck!

arthurjs2
Participant
0 Likes

I'm afraid it did not solve our issue. The AttributeDescriptor is set but does not make any difference in our case. Sorry! Have to keep looking

arvind-kumar_avinash
Active Contributor
0 Likes

Did you try the suggestion from given above? I will also keep this problem in mind and keep thinking of a potential solution.

arthurjs2
Participant
0 Likes

Yes thank you, even when website is inactive it gets re-activated. Trying to see what is going on!