Other than caching every hour, or every week, you may cache according to file data. [crayon-68b5ad0e4e379252759174/] or use file modification…
To get host url of current server simply replace application\config\config.php [crayon-68b5ad0e4e568561093574/] with [crayon-68b5ad0e4e56d488362762/]
You should first test the existence of a file by file_exists(). [crayon-68b5ad0e4e774584325824/] or simple solution without exceptions: [crayon-68b5ad0e4e7a5359766674/]
[crayon-68b5ad0e4ea22420402012/] Output the random string with the call below: [crayon-68b5ad0e4ea28614542767/]
Note: from WordPress Use it like this: [crayon-68b5ad0e4ec62289898489/] Code: [crayon-68b5ad0e4ecb3071094301/]
[crayon-68b5ad0ede85b871605106/] or [crayon-68b5ad0ede868556968567/]
[crayon-68b5ad0ee140b956567439/] instead of [crayon-68b5ad0ee1418269203980/] It will give you POST data as is. You will be able to decode it using…
The output look like: [crayon-68b5ad0ee2898033452215/] [crayon-68b5ad0ee28a4089224247/]