Re: How can I schedule cache flushes in Jahia 4?
Stéphane Croisier <[email protected]>
| Newsgroups | gmane.comp.cms.jahia.template |
|---|---|
| Message-ID | <[email protected]> |
Hi, There is a web service in order to flush the LDAP cache. This service is available here <http://xxx/jahia/services/JahiaCache?wsdl>http://xxx/jahia/services/JahiaCache?wsdl . You need to call the operation " flushByName " for the two caches ( "LDAPGroupsCache" and "ProvidersGroupsCache" ). You could then generate an event from your LDAP each time there is a modification (or make a small srcipt which call this service periodially). Cheers, Stéphane At 14:25 04.01.2007, you wrote: >Dear fellow developers, > >At our company, access to Jahia (v4.1) sites is controlled using groups >from the LDAP repository. When a user is granted or revoked rights, he >is added to or removed from the appropriate LDAP group. Users also log >in to the portal sites using LDAP accounts. > >We found that to propagate changes in ldap users and groups to the Jahia >sites, we usually need to flush the Jahia server caches related to these >items. Currently, an administrator logs in to flush these caches every >once in a while. Our administrators have requested to have these items >flushed automatically once every week. > >To do so, I was thinking of adding a quartz job that uses the scheduler >service to clear the user and group caches. Has anyone ever done >something similar? Is there anything I should be aware of when I do so? >Any pitfalls? > >Best regards, > >Max. > > > >-- >No virus found in this incoming message. >Checked by AVG Free Edition. >Version: 7.1.409 / Virus Database: 268.16.4/615 - Release Date: 03.01.2007 No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.410 / Virus Database: 268.17.14/658 - Release Date: 29.01.2007