Page MenuHomePhabricator

Add a server-side caching service for the new XTools
Closed, ResolvedPublic3 Estimated Story Points

Description

We should provide a generalized caching service for caching things like namespace lists to the new XTools codebase. Possibly implemented in Redis. Should fall-back to local file caching for testing purposes.

Event Timeline

kaldari triaged this task as Medium priority.Mar 21 2017, 10:49 PM
kaldari updated the task description. (Show Details)
kaldari set the point value for this task to 3.

https://symfony.com/doc/current/components/cache.html - Appears to be easily available for symfony. I would avoid Redis because it makes xtools less portable.

There are multiple cache adapters available, and each installation of xTools can choose which is most suitable: http://api.symfony.com/3.2/Symfony/Component/Cache/Adapter.html

Caching is set up, with Redis enabled on the labs install. I've added caching to a couple of places in helpers (namespaces and user IDs). There is some more to be done for caching doctrine results now.

Just need to fix description of cacheGet().