#144 ✓resolved

AJAX add tags controls caching issues

Reported by James | December 21st, 2008 @ 10:52 PM | in 1.2

I have noticed that there is logic inside cache blogs in app/topics/_tags_div.rhtml. Because of this, the 'add tags' controls are shown or not shown depending on what level of permissions a user who visits the 'show' view for the item first is.

Steps to reproduce

  1. Log in as a user and add a topic to the 'site' basket
  2. Log out
  3. Clear the cache using rake tmp:cache:clear
  4. Visit the show page for the topic and notice the 'add tags' controls are not shown
  5. Log in as a valid user who can edit the topic (e.g. the creator of the topic)
  6. Visit the show page for the topic
  7. Notice the 'add tags' controls are still not shown
  8. Clear the cache again
  9. Notice the 'add tags' controls are now shown


Caching around this method would be re-arranged to allow logic to be processed on each visit as appropriate.

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