Añadido helper de gestion de assets caducados e implementado en CSS de PDFs

This commit is contained in:
imnavajas
2025-06-06 09:06:28 +02:00
parent 760144b5fc
commit 5a9326ae82
12 changed files with 21 additions and 11 deletions

View File

@ -0,0 +1,10 @@
<?php
if (!function_exists('versioned_asset')) {
function versioned_asset(string $path): string
{
$fullPath = FCPATH . $path;
$version = file_exists($fullPath) ? filemtime($fullPath) : time();
return site_url($path) . '?v=' . $version;
}
}