| Sh404 URL Cache memory size |
|
Question: Today my website says the following. Help. Fatal error: Allowed memory size of 20971520 bytes exhausted (tried to allocate 11796480 bytes) in /public_html/components/com_sef/cache/shCacheContent.php on line 17285 Answer: However, the default memory size for the cache is quickly maxed out and you may come to your site one day and see an error like the above. To rectify this, set the memory size to 100,000 in components > sh404 > Configuration > Advanced > Cache Size. We also found a cron job that someone wrote to automatically purge the cache once a week. 05 00 * * 1 /bin/rm /www/vhost/lacuruxa.es/public_html/components/com_sef/cache/shCacheContent.php That means: "Delete shCacheContent every moonday at 05:00 a.m." Additionally, we suspect part of the problem may be the parameter to record "duplicate urls". We will test further and update this post if need be. Note: In Joomla 1.0, Virtumart also had memory problems. Technically, it was not Virtumart, but the server itself. The solution was to add this line at the top of the Joomla configuration file. ini_set("memory_limit","12M"); |