 Fix ajax problem in IE  compress the script. Now ajax works in all browsers.
 Setting default cacheDirectory if this from EM is not set.
 Setting default type of caching to beforeCache_db. Renaming $hash to $cacheHash.
 Cache period checks are