mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-27 21:10:54 +00:00
Fixes forums z-index appearing under logo
Fixes view count cache
This commit is contained in:
parent
7877b20ecc
commit
138fae1c63
2 changed files with 2 additions and 1 deletions
|
@ -3,6 +3,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#forums {
|
#forums {
|
||||||
|
z-index: 100;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
.topic-controls {
|
.topic-controls {
|
||||||
|
|
|
@ -66,7 +66,7 @@ class Topic < ActiveRecord::Base
|
||||||
|
|
||||||
def cached_view_count
|
def cached_view_count
|
||||||
Rails.cache.fetch(cache_key('view_count'), expires_in: 1.hours) do
|
Rails.cache.fetch(cache_key('view_count'), expires_in: 1.hours) do
|
||||||
view_count
|
self.view_count
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue