Skip to main content

Caching

Pixwel uses Redis to cache various things. This is supplied by the Cacheable behaviour trait which uses Li3’s Redis cache adapter. All of the model classes include this trait. At the time of writing, the main things we cache include:
  1. $permissions collection - to save an expensive DB lookup through the somewhat complex permissions list, Permissions model caches.

Manipulating the cache

SSH in to one of the production nodes (Redis is locked down to only talk to the VPC) then:
Sometimes after restoring or changing data your local cache will be stale, e.g. $links will appear empty or not include the watermark. Clear your local Redis with:
On the live env, you should clear the cache for individual items rather than blow it away:
(you don’t have to use telnet, this is just an example, DEL in redis-cli should work fine)
See also:
Back to docs index | Next page in recommended reading order >>