#308 ✓resolved
Walter McGinnis

Moving expiring of caches for related items related section to backgroundrb process

Reported by Walter McGinnis | February 22nd, 2012 @ 12:10 PM | in 1.4

When items are created or updated a corresponding cache is cleared for the related items section for any items that the added/edited item is related to. For items that have lots of relationships, think thousands of relationships, (or are related to an a topic with lots of relationships through a prepopulated choices from topic type extended field value), clearing all related items' caches can take considerable time. Since these caches have to be generated before the rest of the create or update actions finish, this can delay returning the request to the user to an unacceptable level.

By moving the generation of corresponding caches to a generic muted worker under backgroundrb that will clear the related items' caches asynchronously, we can return a result the user in acceptable time.

This functionality should fall back to standard cache clearing mechanism for tests and also if the backgroundrb process is not available.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Kete was developed by Horowhenua Library Trust and Katipo Communications Ltd. to build a digital library of Horowhenua material.

People watching this ticket

Pages