1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-11 00:54:49 +02:00

Reduced some memory usage.

This commit is contained in:
Cameron
2021-01-24 17:00:02 -08:00
parent 8508cabcad
commit 522d71d243
30 changed files with 99 additions and 104 deletions

View File

@@ -1249,8 +1249,8 @@ class e_jsmanager
if($return)
{
$ret = ob_get_contents();
ob_end_clean();
$ret = ob_get_clean();
return $ret;
}
}
@@ -1565,7 +1565,7 @@ class e_jsmanager
*/
private function addCache($type,$path)
{
if($this->_cache_enabled != true || $this->isInAdmin() || substr($path,0,2) == '//' || strpos($path, 'wysiwyg.php')!==false )
if($this->_cache_enabled != true || $this->isInAdmin() || strpos($path, '//') === 0 || strpos($path, 'wysiwyg.php')!==false )
{
return false;
}