Details
-
Bug
-
Resolution: Obsolete
-
Medium
-
4.4.0
-
None
-
php5.3
ez4.4
CronjobCacheClear=enabled
Description
Hi
The new code to generate static cache is a bit slower and consume more memory.
than before.
Flushing the cache of a folder with 30 nodes take more than 1s and generate more than 2000 mysql queries.
First issue:
In the file kernel/classes/ezstaticcache.php function storeCache
following code
foreach ( $this->cachedSiteAccesses as $cachedSiteAccess )
$dirs[] = $this->buildCacheDirPath( $cachedSiteAccess );
can be replace with
if(!isset( $this->dirs) )
It will reduce the total time from 1s to 0.5s for the same result (I hope)