Skip to content

Commit

Permalink
Added stash_static_cache_index config option, to allow Stash to be us…
Browse files Browse the repository at this point in the history
…ed as a cache index only when static caching (i.e. no variable content is saved)
  • Loading branch information
croxton committed Jan 25, 2016
1 parent 1ec3e29 commit e393ee1
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -870,6 +870,13 @@ protected function insert_ignore_batch($table, array $data)
{
$_values = array();

// static caching - save an index of the variable only?
if (ee()->config->item('stash_static_cache_index')
&& $this->_can_static_cache($row['bundle_id']))
{
$row['parameters'] = ''; // remove variable content
}

foreach ($row as $col => $val)
{
// add key
Expand Down

0 comments on commit e393ee1

Please sign in to comment.