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-6637662bc8a30939230373/] with [crayon-6637662bc8a36527712672/]
You should first test the existence of a file by file_exists(). [crayon-6637662bc8b64772801420/] or simple solution…
[crayon-6637662bc8c86753062151/] Output the random string with the call below: [crayon-6637662bc8c8c906424215/]
Note: from WordPress Use it like this: [crayon-6637662bc8dc5469924159/] Code: [crayon-6637662bc8dca797188556/]