Bug #39428

Layout and partial identifiers should be independent of current controller name

Added by Alexander Berl about 9 years ago. Updated about 7 years ago.

Status:
Resolved
Priority:
Must have
Category:
Core
Start date:
2012-07-31
Due date:
% Done:

100%

Estimated time:
Has patch:
No

Description

Currently, all templates get an identifier made up of package/subpackage, controller, prefix and unique hash.
This leads to all layouts and partials being compiled and cached once for each controller they are used from, even though the contents is independant and hence just a duplicate.

I suggest adding the controller name as part of the prefix in getTemplateIdentifier() only and stripping it from createIdentifierForFile().

Also available in: Atom PDF