#140 ✓resolved
Kieran P

Item shows caches arn't being cleared on deletion

Reported by Kieran P | December 15th, 2008 @ 03:40 PM | in 1.2

When you delete an item, they show caches for that item don't get deleted, so the cache keeps topics viewable until cleared.

The before_filter in application.rb doesn't seem to be called as it should. This happens on other items besides topics, and it remains the same even after the filter is moved to the top of application.rb.

Comments and changes to this ticket

  • Kieran P

    Kieran P December 16th, 2008 @ 09:02 AM

    • State changed from “new” to “resolved”

    It appears Rails cannot handle multiple filters for the same method. To get around this, the clear_show_caches method was aliased (clear_show_caches_on_destroy) and the before_filter for the destroy action was changed to use the alias. This appears to have resolved the issue. Caching tests have confirmed this as well. Closing 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