How to invalidinput tagged cache of all sites?

There are dukacita configuration. Where s1 is the publichka, and s2 - internal website of the company. Accordingly, the employees make changes from the side s2. But tigerbunny cache set on s1 not invaliditeta.

I.e. let's say on the side s1 in the component:
....
 global $CACHE_MANAGER;
$CACHE_MANAGER->StartTagCache($cache_dir);
$CACHE_MANAGER->RegisterTag("update_events");
$CACHE_MANAGER->RegisterTag("update_courses");
$CACHE_MANAGER->EndTagCache();
....


Somewhere in the interceptor events s2:
global $CACHE_MANAGER;
$CACHE_MANAGER->ClearByTag("update_events");


The cache component as s1 was valid, and so it remains. Are there any solutions except the obvious one - using the agent on the crown to check data changes?
March 12th 20 at 07:57
1 answer
March 12th 20 at 07:59
To sacatomato method ClearByTag bxapi.ru/src/?module_id=main&name=TaggedCache::cle...

For example to make ClearByTagEx in which to remove the filter on SITE_ID:
5bbe1081410d8467116755.png
Well, if not come up with anything - will have to do. Although I don't like the idea of customization, which includes direct, minaudi API request. Fraught. - alysson93 commented on March 12th 20 at 08:02
And so, if you think about it, then such a solution is impossible, as simply a folder with cache in site s1 may not be available for s2 for different reasons. For example as I have - they (the sites) are from different users. - alysson93 commented on March 12th 20 at 08:05
@alysson93, in the sense located in different directories with different permissions/owners? - lizeth_Jacobs commented on March 12th 20 at 08:08
@lizeth_Jacobs, yeah. Well, there and the servers serving the sites different :(
And this still be the problems grow when I realized (well, in particular cereals, MYSQL also same goes to the one who had stood up).
Now the conversation with the admins. I hope they know how to use bind and mirroring of the owner... - alysson93 commented on March 12th 20 at 08:11
@alysson93, then the cache into the database is intentionally "to defer" bxapi.ru/src/?module_id=main&name=CPHPCacheFiles%3... - lizeth_Jacobs commented on March 12th 20 at 08:14
@lizeth_Jacobs, mmm... quite a dirty move - first we must write its implementation with direct database queries to bypass the API - otherwise, he will forfeit ALL tagged cache and not only the desired tags.
On the other hand somehow not on Feng Shui.
A third party - it looks like a solution, albeit messy. I'll think about it. - alysson93 commented on March 12th 20 at 08:17

Find more questions by tags 1C-Bitrix