Skip to content
Discussion options

You must be logged in to vote

I'm not sure why it would take 2-3 seconds for that. Perhaps your stache watcher is enabled (in config/statamic/stache.php), which would improve developer experience at the expense of performance. It's fine to have it enabled in development, but turn it off in production.

Anyway, it's not the Entry class that would control it, it's each fieldtype.

You could just not augment that field, then put the raw value in:

$arr = $show->toAugmentedArray(['title', 'slug']);
$arr['thumbnail'] = $show->value('thumbnail');

or since you're only using those few things, just build your own array:

$arr = [
  'title' => $show->value('title'),
  'slug' => $show->slug(),
  'thumbnail' => $show->value('thumbnail'

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by barnabas-szekeres
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants