Cleanup the getDomain function, so the cache works well. The problem is, that the input "$id" is modified in the loop and so the cache do not work because the rootline is always checked, if the domain is not one the initially checked page. Change the while loop to a deterministic recursively called function and cache on each level. Remove more than 500 queries on my homepage again :)
Cleanup the getDomain function, so the cache works well. The problem is, that the input "$id" is modified in the loop and so the cache do not work because the rootline is always checked, if the domain is not one the initially checked page. Change the while loop to a deterministic recursively called function and cache on each level. Remove more than 500 queries on my homepage again :)
Regards, Tim
patch.txt