Announcement

  •  » Requests
  •  » why is the cache status of derivatives private?

#1 2021-11-25 02:46:46

audioscavenger
Member
2021-11-08
15

why is the cache status of derivatives private?

Hello/Hi/Greetings,

in derivative.inc.php the values $is_cached and $rel_path are private
this prevents plugins from accessing their values

i work on a plugin called Color Palette and I need to access the thumbnails to count the colors, instead of downsizing the original size picture. Thumbnails are processed prior to displaying them so i do that for performance reasons... makes sense?

so why are those values private?
i get them from $template->get_template_vars('current') as all plugins can

what's the reason behind?
also you cannot prevent plugins from accessing private values, all i have to do is a var_dump and read the output backward. there's no security here.

just curious

Last edited by audioscavenger (2021-11-25 02:47:37)

Offline

 
  •  » Requests
  •  » why is the cache status of derivatives private?

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2022 · Contact