Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Profiling results pile up in production #181

Open
semaperepelitsa opened this issue Aug 7, 2013 · 0 comments
Open

Profiling results pile up in production #181

semaperepelitsa opened this issue Aug 7, 2013 · 0 comments

Comments

@semaperepelitsa
Copy link

MiniProfiler works great on my development machine. However, on our production server the old profiling results never disappear. You reload a page and you see all previous results plus a new one. The results appear in a random order.

I cannot reproduce the issue locally. Also, the storage type doesn't matter, I have tried both file and memcache (memory store wouldn't work in our multi-process server). While digging through your library, I have tried a method for removing a result manually in Rails console and it did indeed disappear after page reload.

myip = "..."
ids = Rails.cache.read("MPMemcacheStore-#{myip}-v")
mp = Rack::MiniProfiler.config.storage_instance
mp.set_viewed(myip, ids.last)

Do you have any ideas or suggestions to help debug this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant