mirror of
https://github.com/smarty-php/smarty.git
synced 2026-05-03 19:30:49 +02:00
- use sha1() for filepath encoding
- updates on nocache_hash handling
This commit is contained in:
@@ -94,8 +94,7 @@ class Smarty_Internal_Resource_File {
|
||||
public function getCompiledFilepath($_template)
|
||||
{
|
||||
$_compile_id = isset($_template->compile_id) ? preg_replace('![^\w\|]+!','_',$_template->compile_id) : null;
|
||||
// $_filepath = md5($_template->resource_name);
|
||||
$_filepath = (string)abs(crc32($_template->getTemplateFilepath()));
|
||||
$_filepath = sha1($_template->getTemplateFilepath());
|
||||
// if use_sub_dirs, break file into directories
|
||||
if ($_template->smarty->use_sub_dirs) {
|
||||
$_filepath = substr($_filepath, 0, 2) . DS
|
||||
|
||||
Reference in New Issue
Block a user