Paragraphs uses Entity API but it doesn't support entity cache (http://www.drupal.org/project/entitycache). Entity cache support may improve performance on high load websites. What do you think about this?

CommentFileSizeAuthor
#3 paragraphs-entitycache-2293549-1-D7.patch383 byteskars-t

Comments

furamag’s picture

It's easy to integrate this module with Entity cache. We just need to add following code to hook_entity_info:

  if (module_exists('entitycache')) {
    $return['paragraphs_item']['field cache'] = FALSE;
    $return['paragraphs_item']['entity cache'] = TRUE;
  }

We may also need to add update function to .install file to create cache table for paragraphs.

Let me know if someone interesting in this functionality and I will try to create patch.

tchopshop’s picture

Yes! Thank you!

kars-t’s picture

StatusFileSize
new383 bytes

#1 as a patch. I think this is a very good addition and an easy too. The alteration works with the entityapi Module that will use the entitycache Helper to cache the contents of the paragraphs entity than. Field collections as stated before does this in the same way.

jeroen.b’s picture

Status: Active » Fixed

Thanks for the patch, committed to dev!

Please test (it might be the dev release isn't generated yet when you read this, you can use the version from git instead).

kars-t’s picture

Oh that was fast!

Thanks :)

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.