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-68bdf9b548521968487857/] with [crayon-68bdf9b548529319992876/]
You should first test the existence of a file by file_exists(). [crayon-68bdf9b548a41597211283/] or simple solution…
[crayon-68bdf9b548ced330240613/] Output the random string with the call below: [crayon-68bdf9b548cf5102904477/]
Note: from WordPress Use it like this: [crayon-68bdf9b548fc3182101738/] Code: [crayon-68bdf9b548fca480097553/]