Commit graph

11 commits

Author SHA1 Message Date
Nicolas Lœuillet
13d9f7c96c
Switched enableCache visibility to private 2016-09-04 21:06:52 +02:00
Nicolas Lœuillet
429d86f388
Added tags counter in sidebar (material theme) 2016-09-04 20:53:28 +02:00
Jeremy Benoist
234ad94453
CS 2016-09-03 19:26:23 +02:00
Jeremy Benoist
59ddb9ae99
Remove Twig globals
Twig Global function are called globally. This means even on a query to the api.

Using a function we can decide when we want to call it.

Also, remove previous `COUNT(e.id)` since it doesn't work on PostgreSQL ...
2016-09-03 19:09:28 +02:00
Jeremy Benoist
543da3e0b7
Instead of selecting the whole data, just count it
Instead of performing a complex select (to retrieve all data for entry, etc...) just select the counter and retrieve it.

Down from ~50ms to ~30ms on the unread page (with 500 items)
2016-09-03 18:11:07 +02:00
Nicolas Lœuillet
0b0233b1ec
Enable cache for queries 2016-09-01 20:20:12 +02:00
Nicolas Lœuillet
f997ae6afb
Implement Twig_Extension_GlobalsInterface to remove deprecation 2016-08-23 07:47:55 +02:00
Nicolas Lœuillet
8315130a75
Display entries number for each category 2016-08-23 07:47:55 +02:00
Jeremy Benoist
4094ea4771 Convert array + phpDoc
Thanks for https://github.com/thomasbachem/php-short-array-syntax-converter
2016-04-12 12:25:29 +02:00
Nicolas Lœuillet
cfb28c9da0 french translation 2015-10-01 09:26:52 +02:00
Nicolas Lœuillet
72fcaf8a6c remove www. on entries view 2015-09-29 22:59:44 +02:00