SCM determines whether the new query Q can be answered from cache or not, either partially or totally. Semantic Caching Module (SCM) will pass on the information to Execution module where to execute the new query Q, either locally or remotely. Execution module will pass on the information to the Replacement Module about the new query Replacement Module will calculate the importance of each query. If the cache if full, cache replacement algorithm (cache replacement mechanism) will be invoked .