Closed (fixed)
Project:
Views Bulk Operations (VBO)
Version:
6.x-1.x-dev
Component:
Actions
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
22 Oct 2011 at 19:24 UTC
Updated:
11 Nov 2011 at 21:59 UTC
Instead of saving VBO actions in a variable, use cache_set and cache_get.
Comments
Comment #1
infojunkieCommitted to latest dev.
Comment #2
infojunkie@bojanz, do you prefer this approach?
Comment #3
bojanz commentedIt's a better approach than variable_set / variable_get.
I've talked with catch about this, and he agreed that by speed the order is:
hardcoded list > variable_get -> cache_set / cache_get.
Variable_get is slightly faster (we are talking nano-seconds here), but the fact that it can't be cleared without an update function when VBO is updated is problematic.
So, definitely +1 for cache_set / cache_get in D6.
In D7, I'll keep the hardcoded list. It's already there and working, no reason to touch it further.