Answer the question
In order to leave comments, you need to log in
How to invalidate the tagged cache of all sites?
There is a two-site configuration. Moreover, s1 is a public site, and s2 is an internal site of the company. Accordingly, employees make changes from s2. But the tagged cache set to s1 is not invalidated.
Those. let's say on the s1 side in the component:
....
global $CACHE_MANAGER;
$CACHE_MANAGER->StartTagCache($cache_dir);
$CACHE_MANAGER->RegisterTag("update_events");
$CACHE_MANAGER->RegisterTag("update_courses");
$CACHE_MANAGER->EndTagCache();
....
global $CACHE_MANAGER;
$CACHE_MANAGER->ClearByTag("update_events");
Answer the question
In order to leave comments, you need to log in
Customize the method ClearByTag
bxapi.ru/src/?module_id=main&name=TaggedCache::cle...
For example, make ClearByTagEx in which to remove the filter by SITE_ID:
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question