diff options
author | Thomas Steur <thomas.steur@gmail.com> | 2013-09-20 06:48:02 +0400 |
---|---|---|
committer | Thomas Steur <thomas.steur@gmail.com> | 2013-09-20 06:52:50 +0400 |
commit | 6cd07963976102139db0de2b5faf78a4d427edcf (patch) | |
tree | ca1a14e1b4f9a9942b50bc48cb33bf33b41c35a3 /core/ScheduledTask.php | |
parent | 6f5cb36acc27aa61420c3905b852165307c1a22f (diff) |
cache marketplace requests only for 20minutes, clear cache entries once a day
Diffstat (limited to 'core/ScheduledTask.php')
-rw-r--r-- | core/ScheduledTask.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/ScheduledTask.php b/core/ScheduledTask.php index 5262e7cbc3..d2349329de 100644 --- a/core/ScheduledTask.php +++ b/core/ScheduledTask.php @@ -81,6 +81,10 @@ class ScheduledTask protected function getClassNameFromInstance($_objectInstance) { + if (is_string($_objectInstance)) { + return $_objectInstance + } + $namespaced = get_class($_objectInstance); $class = explode('\\', $namespaced); return end($class); |