Other than caching every hour, or every week, you may cache according to file data.…
To get host url of current server simply replace application\config\config.php [crayon-679fd4f6957c3858656860/] with [crayon-679fd4f6957d5053489735/]
You should first test the existence of a file by file_exists(). [crayon-679fd4f695b6f809553489/] or simple solution…
[crayon-679fd4f695d93335868883/] Output the random string with the call below: [crayon-679fd4f695d9a408628358/]
Note: from WordPress Use it like this: [crayon-679fd4f695f9c527621639/] Code: [crayon-679fd4f695fa5979458799/]