Cron still using Deferred system. Just have a bit difference that Cron have interface which you can control the runtime while deferred are not.I'm having similar issues like @Amin Sabet, my server was down twice because of this addon. Don't really want to try again until I'm completely sure it will work correctly.
I'm still waiting for a stable solution that won't overload my server.
Thanks @Nuno for the suggestions, hope @Nobita.Kun can follow them and use cron instead of deferred.
Kind regards!
Sure, you're the developer.Cron still using Deferred system. Just have a bit difference that Cron have interface which you can control the runtime while deferred are not.
I just know that everytime I try this addon my server overloads and gets down.
- Added option to control each time optimize.
ErrorException: Undefined index: lastRunTime - library/Nobita/ImageOptimizer/Deferred/Optimize.php:45
Generated By: Unknown Account, 6 minutes ago
Stack Trace
#0 /home/nginx/domains/talkemount.com/public/library/Nobita/ImageOptimizer/Deferred/Optimize.php(45): XenForo_Application::handlePhpError(8, 'Undefined index...', '/home/nginx/dom...', 45, Array)
#1 /home/nginx/domains/talkemount.com/public/library/XenForo/Model/Deferred.php(295): Nobita_ImageOptimizer_Deferred_Optimize->execute(Array, Array, 8, '')
#2 /home/nginx/domains/talkemount.com/public/library/XenForo/Model/Deferred.php(429): XenForo_Model_Deferred->runDeferred(Array, 8, '', false)
#3 /home/nginx/domains/talkemount.com/public/library/XenForo/Model/Deferred.php(374): XenForo_Model_Deferred->_runInternal(Array, 8, '', false)
#4 /home/nginx/domains/talkemount.com/public/deferred.php(23): XenForo_Model_Deferred->run(false)
#5 {main}
Request State
array(3) {
["url"] => string(39) "https://www.talkemount.com/deferred.php"
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}
Nobita.Kun updated [Nobita] Image Optimizer with a new update entry:
- Added option to control each time optimize.
To prevent CPU earning you might using high value. For how option working? Each optimize must wait a number of minutes (option value) to run.Good news is that I was able to get through the entire optimization of my site with over 70,000 image attachments, some of them very large.
Bad news is that server load was very high (over 20) and climbing at the end of that. However, CPU utilization did not rise very high.
From what I can tell, the addon races to optimize all images, regardless of the "Time Between Optimizing (minutes)" setting.
One of my sites has over 425,000 large image attachments not including thumbnails and avatars. I don't know if my server will be able to survive through that.
Thanks, Nobita. Trying this right now, got this error:
Code:ErrorException: Undefined index: lastRunTime - library/Nobita/ImageOptimizer/Deferred/Optimize.php:45 Generated By: Unknown Account, 6 minutes ago Stack Trace #0 /home/nginx/domains/talkemount.com/public/library/Nobita/ImageOptimizer/Deferred/Optimize.php(45): XenForo_Application::handlePhpError(8, 'Undefined index...', '/home/nginx/dom...', 45, Array) #1 /home/nginx/domains/talkemount.com/public/library/XenForo/Model/Deferred.php(295): Nobita_ImageOptimizer_Deferred_Optimize->execute(Array, Array, 8, '') #2 /home/nginx/domains/talkemount.com/public/library/XenForo/Model/Deferred.php(429): XenForo_Model_Deferred->runDeferred(Array, 8, '', false) #3 /home/nginx/domains/talkemount.com/public/library/XenForo/Model/Deferred.php(374): XenForo_Model_Deferred->_runInternal(Array, 8, '', false) #4 /home/nginx/domains/talkemount.com/public/deferred.php(23): XenForo_Model_Deferred->run(false) #5 {main} Request State array(3) { ["url"] => string(39) "https://www.talkemount.com/deferred.php" ["_GET"] => array(0) { } ["_POST"] => array(0) { } }
We use essential cookies to make this site work, and optional cookies to enhance your experience.